Search code examples
zend-frameworkshared-hostingdocument-root

Change document-root on Shared-host?


When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/.

Apart from choosing a proper host..there's any workaround?

thanks

Luca


Solution

  • If you have access to directories above public, you can put all non public files there. Otherwise, you can put everything in a subdirectory, and block access to it with an .htaccess file.