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

link|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
feedback

2 Answers

Maybe this can help.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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