I developed a project on Zend Framework on Ubuntu. I created a virtual host on my local machine for testing. It is working perfectly on my local machine. This is the entry for virtual host on local machine.
<VirtualHost *:80>
ServerName example.dev
DocumentRoot /var/www/example/public/
<Directory /var/www/example/public/>
AllowOverride All
</Directory>
</VirtualHost>
Problem:
My problem is that when I purchased domain(example.com) name and hosting they gave me following ftp directory to upload my content.
example.com
is pointing to /www.example.com/web/content
But I need example.com
to point/www.example.com/web/content/public
I asked them to solve it but they told it is impossible. Is there any programing/configuration solution of this.
Thanks
Edit:
I have already following .htaccess in /www.example.com/web/content/public
SetEnv APPLICATION_ENV development
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]