Take the 2-minute tour ×
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 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
2  
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
add comment

1 Answer 1

In a .htaccess file or your httpd.conf:

Alias /blog/ "/srv/www/blog"
share|improve this answer
add comment

Your Answer

 
discard

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.