How to use good path_info way to hide index.php files?

Source: Internet
Author: User

I like to use Path_info to make search engine friendly when I build my station with PHP program, for example:

Php/module/xxx/action/xxx/id/xxx ">http://www.15597.com/index.php/module/xxx/action/xxx/id/xxx

But index.php can see the extension. PHP is very uncomfortable, the workaround is as follows:

In Apache this configuration:

Forcetype application/x-httpd-php

How to more like static pages: app_name/my/app.html

When parsing the Path_info parameter, the last 5 characters of the last parameter, ". html", are truncated.

Note: The default in APACHE2 is not to allow path_info, you need to set acceptpathinfo on

Http://www.15597.com/index/module/xxx/action/xxx/id/xxx

Joint article: PHP access to the site error cgiwrap/cgiwrap/iuser_xxxx/index.php can not find

Http://tech.cncms.com/fuwuqi/webserver/qita/110336.html

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