Snippets

Create an account or login to be able to add, comment and rate snippets.

Navigation

Refine Tags

Snippets tagged "admin apache" Snippets tagged "admin apache"

Multiple applications within one project - an other way

In the Cookbook there is a way for multiple applications whitin one project, but this is not worked sometimes.

There is an other way what is working with Apache. Add the next line to the back-end virtual-host configuration file before the </VirtualHost> line.

AccessFileName .htaccess_backend

In the project web directory copy the .htaccess file to .htaccess_backend. In .htaccess_backend file change the next line:

RewriteRule ^(.*)$ index.php [QSA,L]

to:

RewriteRule ^(.*)$ backend.php [QSA,L]

Don't forget to restart the apache.

by Tamas Amon on 2007-11-28, tagged admin  apache  server