title: Installing a Zend project on hosting with access only to the public directory
body: <p>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.</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerName example.dev
      DocumentRoot /var/www/example/public/
      &lt;Directory /var/www/example/public/&gt;
          AllowOverride All
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <h2>Problem:</h2>
  
  <p>My problem is that when I purchased domain(example.com) name and hosting they gave me following ftp directory to upload my content.</p>
  
  <p><code>example.com</code> is pointing to <code>/www.example.com/web/content</code></p>
  
  <p>But I need <code>example.com</code> to point<code>/www.example.com/web/content/public</code></p>
  
  <p>I asked them to solve it but they told it is impossible. Is there any programing/configuration solution of this.</p>
  
  <p>Thanks </p>
  
  <h2>Edit:</h2>
  
  <p>I have already following <strong>.htaccess</strong> in <code>/www.example.com/web/content/public</code></p>
  
  <pre><code>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]
  </code></pre>