Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:15:40+00:00 2026-05-27T09:15:40+00:00

I developed a project on Zend Framework on Ubuntu. I created a virtual host

  • 0

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]
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:15:41+00:00Added an answer on May 27, 2026 at 9:15 am

    Depending on the web server they use and the configuration they have you may be able to override some of the configuration, for example, you can change document root with apache rewrite rules with a .htaccess file like this one to put under the root of /www.example.com/web/content

    RewriteEngine On
    
    RewriteRule ^\.htaccess$ - [F]
    
    RewriteRule ^$ /public/index.php [L]
    
    RewriteCond %{REQUEST_URI} !^/public/.*$
    RewriteRule ^(.*)$ /public/$1
    
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^.*$ - [NC,L]
    
    RewriteRule ^public/.*$ /public/index.php [NC,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently working on a project developed using Zend Framework, based on the
I'm going to start working on project developed in ASP.NET. In this project I
I have to work on this project written using Zend Framework. This is a
I've got a project developed circa Zend Framework 1.7 that I'd like to migrate
I`m working in a serial terminal project developed in VB.NET. I need to display
My client wants to Migrating their custom developed php project to cake php framework.
I am currently working on an already developed project written in MFC C++ and
I am just getting started with a big Zend Framework project. One thing confuses
I have project developed using cakephp 1.3 and for testing I used SQL Inject
I have developed a project using MVC3 and Code first Entity Framework 4.0 as

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.