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

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

share|improve this answer

Your Answer

 
discard

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.