If you are using the PHP framework Zend, you have to set /public as the root folder. And if you are using Symfony, it’s instead /web. But if you can’t set which folder that will act as the site’s root folder, add these files to the site’s root folder:
.htaccess
RewriteEngine On RewriteRule .* index.php
index.php
Symfony:
<?php require_once 'web/app.php';
Zend:
<?php require_once 'public/index.php';
Now you will be able to use yoursite.com instead of yoursite.com/web/app.php or yoursite.com/public.
If images, CSS and JS aren’t displayed with Symfony2, add this to your /app/config/config.yml file:
framework:
#..
templating:
engines: ['twig']
assets_base_urls: /web/
