News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Stefan Koopmanschap's Blog:
Serving frontend and backend from the same document root with symfony
March 25, 2009 @ 09:31:45

Stefan Koopmanschap has a recent post to his blog about a small oversight (and gotcha other symfony developers should watch for) that he's made a few times when trying to work with a subdomain of his main symfony-powered website:

Quite often have I been staring at my virtualhost setup for the admin subdomain of this application, wondering why the hell it kept serving the frontend. I'd set the DirectoryIndex to backend.php, so why did it keep serving the frontend?

The culprit was something that's usually one of the first things set up when you load a new framework - the mod_rewrite rules in an .htaccess. Of course, since they were the default, things would get routed back to "index.php" instead of his "backend.php" as he wanted. To fix it, he moved these options out of the .htaccess and into the virtualhost configuration.

0 comments voice your opinion now!
symfony framework htaccess frontend backend modrewrite rule


blog comments powered by Disqus

Similar Posts

Chris Hartjes' Blog: My Next Foolish Project: A console for CakePHP

Fabien Potencier's Blog: The state of YAML in PHP

Fabian's Blog: Better Performance patch for Symfony 1.0.x and Propel 1.2

Vinu Thomas' Blog: Project Jaws

phpRiot.com: Creating a fulltext search engine with the Zend Framework\'s Zend_Search_Lucene


Community Events





Don't see your event here?
Let us know!


community series conference laravel symfony composer list interview voicesoftheelephpant tool opinion unittest configure framework introduction podcast version release language api

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework