News Feed
Sections




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

Lorenzo Alberton's Blog:
Zend Framework, mod_rewrite and public dir in shared hosting
February 16, 2009 @ 11:16:06

Lorenzo Alberton has a quick tip for those dealing with Zend Framework applications and shared hosting:

The public directory contains all the files that should be directly accessible via the web server, so you must set your web server's document root to this directory. The problem is, in most shared hosting setups you can't change the document root. [...] To solve this problem without changing the above directory structure, you can remove the .htaccess file from the public directory, and place this one in the root directory instead.

His new .htaccess file makes use of the mod_rewrite Apache extension to force everything back into the bootstrap file for your application. You can find out more about setting up a Zend Framework application in their QuickStart guide.

0 comments voice your opinion now!
shared hosting zendframework application tutorial htaccess docroot


blog comments powered by Disqus

Similar Posts

Godaddyhostingreview Blog: How to move Magento from Production to Live Server

Arnold's Blog: Without a framework: (M)VC

PHPBuilder.com: Profiling PHP Code with Xdebug and KCacheGrind

Gonzalo Ayuso's Blog: Building a small microframework with PHP (Part 2). Command line interface

Kevin Schroeder's Blog: Zend_Server


Community Events





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


developer laravel conference code deployment framework development api interview community language introduction series symfony zendserver release list tips podcast threedevsandamaybe

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