Mod rewriting behaving differently in different servers

Oh, the strange things mod_rewrite does!

Mod rewriting behaving differently in different servers

Postby jasonb » Wed Nov 28, 2007 12:16 am

This is my rule
RewriteRule ^animation/(new|old|all)([-]*)([sort]*).htm$ /modules/products/titleList.php?catId=1&mode=$1&sort=$3 [L]

http://mydomain.com/animation/new.htm works in my local test server but not in my production server.

Similarly http://mydomain.com/animation/old.htm and http://mydomain.com/animation/all.htm works in local server but not in the online server.

Where am I messing up?
jasonb
 
Posts: 1
Joined: Wed Nov 28, 2007 12:12 am

Postby richardk » Wed Nov 28, 2007 11:49 am

Test that you can use mod_rewrite.

Also, try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^animation/(new|old|all)(-(sort))?\.htm$ /modules/products/titleList.php?catId=1&mode=$1&sort=$3 [L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Idiosyncrasies

Who is online

Users browsing this forum: No registered users and 2 guests

cron