Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.