Mobile app version of vmapp.org
Login or Join
Pierce454

: Use different document root for subfolder of URL 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

@Pierce454

Posted in: #Apache #Linux

I have an php application that uses an MVC framework.

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

I want 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.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Pierce454

1 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay111

In a .htaccess file or your httpd.conf:

Alias /blog/ /srv/www/blog/


Note the trailing slash.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme