Different folder as website subfolder

后端 未结 2 1015
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 04:56

I need some help with URL rewriting. The case is similar with this one.

I have a working Zend Framework site. Now I must add a blog in Wordpress (also working). I\'v

2条回答
  •  感情败类
    2020-12-13 05:33

    www.site.com (points to /var/www/zf)

    www.site.com/blog (points to /var/www/wp)

    The easiset way to achive this, where you want a sub-url to point outside the VirtualHost's DocumentRoot directory, is to create an Alias...

    Inside the VirtualHost block add:

    Alias /blog /var/www/wp
    
    
        Options All
        AllowOverride All
        order allow,deny
        allow from all
    
    

    *This assumes you have PHP enabled in some way for that directory.

提交回复
热议问题