I'm creating a website. I have this code in the .htaccess file:
RewriteEngine On
RewriteRule ^/([0-9][0-9])/$ /redirect.php?id=$1
But when I go to, for example /ASEi it says 404 Not Found What's the problem?

link|improve this question

0% accept rate
feedback

1 Answer

RewriteRule ^([0-9][0-9])$ /redirect.php?id=$1

Should probably work. Though what you're doing here, is to rewrite addresses from http://www.example.com/12 (two-digit numeric ID only) to http://www.example.com/redirect.php?id=12

Based on your example (/ASEI) I'm not sure if that's what you really want.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.