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 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:// should be rewritten into into http://

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

Maybe this can help.

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.