6

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?

Patrick Mevzek
  • 8,375
  • 1
  • 20
  • 42
neilc
  • 183
  • 1
  • 1
  • 3
  • 2
    Alias -- http://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 08:50

1 Answers1

3

In a .htaccess file or your httpd.conf:

Alias /blog/ /srv/www/blog/

Note the trailing slash.

Damien
  • 103
  • 4
wjdp
  • 131
  • 2