I have a PHP application that uses an MVC framework, with Apache on Linux.

Let us say it lives here http://example.com on the web and here /srv/www/example.com on my server.

I want http://example.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?


In a .htaccess file or your httpd.conf:

Alias /blog/ /srv/www/blog/

Note the trailing slash.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.