Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

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

Should probably work. Though what you're doing here, is to rewrite addresses from (two-digit numeric ID only) to

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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