htaccess redirect?
Posted by: cryscrys
Posted on: 2007-03-04 08:12:00
Alright, so I'm trying to make URLs that are folder/index.php?id=variable#here redirect server-side when in the address bar a user types in folder/variable#here.
I've searched a few .htaccess help sites, including a few forums, but they didn't help with why what I'm doing is not working. Here's my current code:
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^folder/(.+) index.php?id=$1 [nc]
The htaccess file is in the folder that would be displayed server-side (folder).
I also have tried this code:
Options +FollowSymlinks
RewriteEngine ON
RewriteBase /
RewriteRule ^/folder/([0-9]*) /folder/index.php?id=$1 [L]
I've also asked on another forum, and apparently that's correct. I'm thinking maybe mod_rewrite is for some reason not enabled with DreamHost?