Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Here is what we have:

 Alias /assets/ "/home/virtual/public_assets/"
 AliasMatch ^/~([a-zA-Z0-9]+)/assets/(.*)$ /home/virtual/public_assets/$2

 <Directory "/home/virtual/public_assets">
      AllowOverride All

Here is the URI we are trying to match to:


The Alias directive works for our live sites, however, the AliasMatch which is supposed to match user directories does not.

share|improve this question
if you have enabled the userdir directive, try to disable it –  neo Jan 23 '13 at 11:34
Why not use a cleaner conditional rewrite using htaccess? –  Simon Hayter Feb 12 '13 at 23:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.