Search code examples
phpapachezend-framework2zend-framework-mvc

How to add 3rd party application into Zend Framework 2 MVC (Apache)?


Okay, so I'm using the Zend 2 Framework and I followed the basic Zend MVC style. But lets say I want to add site.com/blog (and blog being a 3rd party application). So how do I got about adding this? How do I tell the framework to ignore /blog? Would this just be a .htaccess change? (I'm using Apache)

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

Thanks!


Solution

  • RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d [OR]
    RewriteCond %{REQUEST_URI} !^blog.*$
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]