Hi, I'm creating a website. I have this code in the .htaccess file:
RewriteEngine On
RewriteRule ^/([-a-zA-Z0-9_]+)/$ /redirect.php?id=$1
But when I go to, for example /ASEi it says 404 Not Found. What's the problem?
views:
19answers:
2It says 404 Not Found.
Francesc
2010-04-26 08:54:12
A:
I found it, the problem was the first /
. The .htaccess now looks like:
RewriteEngine On
RewriteRule ^([-a-zA-Z0-9_]+)$ redirect.php?id=$1
Francesc
2010-04-26 09:10:07