Why does the file in localhost not open?

Source: Internet
Author: User
Keywords Php

For example, I have a project folder in the WWW folder called Test i open localhost and then click Test, not jump to localhost/test instead of jumping directly to http://test/is where the configuration out of the problem picture description

Reply content:

For example, I have a project folder in the WWW folder called Test i open localhost and then click Test, not jump to localhost/test instead of jumping directly to http://test/is where the configuration out of the problem picture description

It's okay, it's normal, it doesn't matter.
If it is really awkward to edit the index.php on the line, which has

$suppress_localhost = true;if(!empty($wampConf['urlAddLocalhost']) && $wampConf['urlAddLocalhost'] !== "off")    $suppress_localhost = false;

It's the problem, the if default is not set, so $suppress_localhost = true; , behind

        $projectContents .= '
  • '.$file.'
  • ';

    I see?

    Oh, that's a problem.
    Wamp has a set, new add a site on the line
    Or, you directly access this
    Http://localhost/test

    PS: Regardless of your level, it is recommended that this integration environment or not to use, to configure their own environment, to calculate the start

    The new version does have this problem I've met before. You can modify index by. PHP change it over. Specific methods available online

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