Can I use "Set default home page" To resolve an issue where the Zend Framework's Web site is not reachable by uploading to virtual space?

Source: Internet
Author: User
Tags zend framework
Title.
A PHP web site was built with the Zend Framework framework and uploaded to the Western Digital virtual host.
Because the web directory of a virtual host cannot be re-provisioned by the user as needed, all files for the Web site can only be published to the specified web directory of the virtual host.
This creates a problem: sites made with the Zend Framework framework can only correspond to the public folder of the Web site, and other files and folders are located outside the Web directory, which is a parallel relationship to the Web directory. While a virtual host cannot meet the requirements of the Zend Framework architecture, it is possible to publish all of the site's files to the web directory specified by the virtual host.
Because the main file index.php is located under the public folder, not at the Web root, you are not prompted to find the home page or the home page when you visit the Web site.
The most solution available online is to modify the. htaccess file. But I always feel a bit cumbersome, I have tried to follow the online statement, but failed to properly solve my problem.
Later I found: my host provider in the virtual host management has a "set default Home" function, I will be my home from the original default index.php modified into a/public/index.php, after this change, my home page can now display normally.
As I have just contacted Zend Framework development, the deeper technology is not understood, so I do not know whether after such a setup can really solve the future site's normal access, so put forward to ask you to give some advice or know, in this first thanked!


Reply to discussion (solution)

Is the problem complicated? How come there's no hero shot?

I haven't used the Zend framework, and I'm not using it.
If you look at your description, you won't be able to use it.

If your description is correct, then there is no merit in the framework, and it is recommended that you do not use it.

I haven't used the Zend framework, and I'm not using it.
If you look at your description, you won't be able to use it.

If your description is correct, then there is no merit in the framework, and it is recommended that you do not use it.
Although the Zend Framework is vast and difficult to learn, it is not without merit. In fact, PHP development projects, and the use of Zend Framework framework of large companies are also a few. Technology this thing, can not be absolutely the label of what is inferior, each technology has his strengths and shortcomings, the use of mutual to make up in the industry is not uncommon.
Since want to learn this framework do not want to give up halfway, csdn in the master indeed many, but willing to pay attention to this kind of pediatric problem master but less, very grateful to the owner can take time for me to say a personal speech on the problem, thank you.
Continue to wait for other insights ...

Feel PHP's framework of the layout is really not active, is it understood that the framework of the master are disdain here? Unfortunately, this plate ....
Disappointment, Knot stickers!

If you want to set up in the htaccess file how do I get this problem?

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.