Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Here is my htaccess:

RewriteCond     %{HTTP_HOST}                                 ^(?:www\.)?(.+?)\.imvu-e\.com$
RewriteCond     /var/imvu/products/ht/clients/%1/            -d
RewriteRule     ^(.+)                                        %{HTTP_HOST}$1
RewriteRule     ^(?:www\.)?([^.]+?)\.imvu-e\.com/(.*)        /var/www/imvu/products/ht/clients/$1/$2 [L]

I would like to redirect to the files at /var/imvu/products/ht/clients/anything/

Thus goes to /var/imvu/products/ht/clients/anything/woot.php sending it var=4

The way it is now to access it would be

share|improve this question
up vote 2 down vote accepted

How about a nice VirtualDocumentRoot instead?

VirtualDocumentRoot /var/imvu/products/ht/clients/%-3
share|improve this answer
This seems to mess up my relative links where I use ../ in the URL or for images. Id rather them type in and be redirected to the long URL – ParoX Jul 16 '12 at 8:07

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.