Webmasters Stack Exchange is a question and answer site for pro webmasters. 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

I have an php application that uses an MVC framework.

Lets say it lives here http://domain.com on the web and here /srv/www/domain.com on my server.

I want http://domain.com/blog to use a wordpress install from here /srv/www/blog and all the root web traffic to go to my MVC app (as shown above)

How can this be done?

I am using linux and apache.

share|improve this question
Alias -- httpd.apache.org/docs/current/mod/mod_alias.html#alias , but you cannot do this in .htaccess, it has to be server config/virtual host. – LazyOne Apr 18 '12 at 8:50

In a .htaccess file or your httpd.conf:

Alias /blog/ "/srv/www/blog"
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.