Jump to content

is this correct


prakash

Recommended Posts

I have following code in my .htaccess for SEF URLs for www.fashionsansar.com

so please let me know is this correct.

 

Options FollowSymLinks SymLinksIfOwnerMatch
RewriteEngine on

#################################################################################################
## Rewrite index urls
#################################################################################################
RewriteRule index-([0-9]*)\.html$ index.php?page$1 [NC]


#################################################################################################
## Rewrite image_view urls
#################################################################################################
RewriteRule fas_fusk/image_view([0-9]*)\.html fas_fusk/image_view.php?id=$1 [NC]


#################################################################################################
## Rewrite tag_search urls
#################################################################################################
RewriteRule fas_fusk/tag_search([0-9]*)-page-([0-9]*)\.html fas_fusk/tag_search.php?q=$1&page=$2 [NC]

 

but it's not working. .htaccess SEF URLs is already running without any problem on another website on same host.

 

Link to comment
Share on other sites

Try this,

.htaccess

RewriteEngine on
RewriteRule ^index-([0-9]+).html index.php?page=$1
RewriteRule ^fas_fusk/image_view([0-9]+).html fas_fusk/image_view.php?id=$1
RewriteRule ^fas_fusk/tag_search([0-9]+)-page-([0-9]+).html fas_fusk/tag_search.php?q=$1&page=$2

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.