Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

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 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
add comment

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.