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