.htaccess weirdness

software development



I had a website running on an older version of Apache (1.x) and PHP (4.3.3) and was using an .htaccess file to do a few url rewrites.

I move the site to DH and now the rewrites don’t work. Looking at the regex things look fine.

I need to change this url:

to this url:

and I’ve placed the following on my .htaccess file:
RewriteRule ([0-9]{4})-([0-9a-zA-Z]+)-([0-9a-zA-Z]+)$ /index.php/rentals/detail/
$3/$2/$1/ [L]

Any idea why this isn’t working? Looks pretty straightforward but I must be missing something!


Is the site generating URLs to be rewritten by passing variables using register_globals ON? DreamHost’s PHP 5 has this turned off.