Rewrite engine problem

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
I have a small SEO snippet in my htaccess
Code:
RewriteRule ^(.*?).html$ ^/index.php?page=$1 [L]
Which is supposed to redirect requests like 'mysite.com/whatever' to 'mysite.com/index.php?page=whatever'. However, I get a 404 error instead.
 

compwhizii

Banned
Messages
779
Reaction score
0
Points
0
May I have a link to where this is happening, I'd like to see exactly what happens.
 

xPlozion

New Member
Messages
868
Reaction score
1
Points
0
Please tell me that you have
Code:
RewriteEngine On
at the top of your .htaccess file.

The only thing I would try differently is
Code:
RewriteRule ^(.*?).html$ ./index.php?page=$1 [L]
 
Top