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

I have an php application that uses an MVC framework.

Lets say it lives here on the web and here /srv/www/ on my server.

I want 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 -- , but you cannot do this in .htaccess, it has to be server config/virtual host. – LazyOne Apr 18 '12 at 8:50

1 Answer 1

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.