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 am trying to rewrite a URL for a Dreamhost served website. So basically I want to do the following:

  • Rewrite only URLs that start with an x!
  • URLs like this http:// domain.com/x23 should be rewritten into into http:// domain.com/index.php/lookup/code/x23

Without showing the rewritten URL of course!

I tried this:

RewriteEngine On
RewriteRule ^(x[0-9a-z])$ index.php/lookup/code/$0 [L]

but it doesn't seem to work.

Thanks, Max

share|improve this question
    
You might want to ask this on Stackoverflow. –  fenster Sep 18 '09 at 17:40
    
Thanks, just did I was confused wether it was a server or stackoverflow ?. :D –  mschoening Sep 18 '09 at 17:46

2 Answers 2

Maybe this can help.

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.