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
https://forums.phpfreaks.com/topic/57086-is-this-correct/
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
https://forums.phpfreaks.com/topic/57086-is-this-correct/#findComment-286455
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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