.htaccess weirdness

software development

#1

Weird.

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:
http://www.seaislerealty.com/2010-LERS04-0047

to this url:
http://www.seaislerealty.com/index.php/rentals/detail/0047/LERS04/2010/

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!


#2

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