Jump to content

Changing the default URL pattern


desibaba

Recommended Posts

You also need to change RewriteRule in .htaccess file. You need to find the rewrite rules that are used for /video pages, e.g. these:

RewriteRule ^video/([0-9]+)/([^/]+)/$       view_video.php?id=$1&dir=$2 [L,QSA]
RewriteRule ^video/([^/]+)/$                view_video.php?dir=$1 [L,QSA]

The first rule is for the case when you pass video ID AND video directory. The 2nd rule is for the case when you pass video directory only.

So you need to change video part in them to your xxx part.

Link to comment
Share on other sites

11 minutes ago, Tech Support said:

You also need to change RewriteRule in .htaccess file. You need to find the rewrite rules that are used for /video pages, e.g. these:

RewriteRule ^video/([0-9]+)/([^/]+)/$       view_video.php?id=$1&dir=$2 [L,QSA]
RewriteRule ^video/([^/]+)/$                view_video.php?dir=$1 [L,QSA]

The first rule is for the case when you pass video ID AND video directory. The 2nd rule is for the case when you pass video directory only.

So you need to change video part in them to your xxx part.

like these?

 

RewriteRule ^xxx/([0-9]+)/([^/]+)/$       view_xxx.php?id=$1&dir=$2 [L,QSA]
RewriteRule ^xxx/([^/]+)/$                view_xxx.php?dir=$1 [L,QSA]

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...