PHP path problem

Source: Internet
Author: User
The project is placed in the root directory of the site can be used only, but placed in a file, the level two directory path is wrong. How to break, inside with is less absolute path/xx/xx


Reply to discussion (solution)

If the root directory of the Web site is accessed using/xx/xx
Then the level two directory will have/two level directory/xx/xx

There is no good way out. Do you want a change?

If the root directory of the Web site is accessed using/xx/xx
Then the level two directory will have A/Level two directory/xx/xx not AH. Change to./XX/XX can

The second level directory is preceded by a layer of directories./, otherwise you'll get a path error.

If the server is controllable, set the file to Virtaul host, and the root directory is set to 301 redir
No control, just change it.

Do not leave anything to set. There's no good way. You can use the IDE to search.

O (∩_∩) o Thank you. Not the project I wrote. You can't change it with the IDE, there will be some problems elsewhere. Can only be used to change the server, the most insurance.

  • 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.