$ _ Server problem. Why can't I disable index. php if url rewriting fails?

Source: Internet
Author: User
$ _ Server problem. Why can't I disable index. php's host url rewriting?
$ _ SERVER ['path _ info'] will disappear,
Instead
$ _ SERVER ["ORIG_PATH_INFO"]
As a result, the removal of index. php will become invalid based on $ _ SERVER ['path _ info '].
I just discovered this phenomenon, but I don't understand why?


Reply to discussion (solution)

PATH_INFO is missing but ORIG_PATH_INFO is there with the information PATH_INFO was supposed to have.

So the php code had to be changed to check for $ _ SERVER ['orig _ PATH_INFO '] when $ _ SERVER ['path _ info'] is absent

See the last section of http://www.binarytides.com/path_info-orig_path_info-apache-and-php/

PATH_INFO is missing but ORIG_PATH_INFO is there with the information PATH_INFO was supposed to have.

So the php code had to be changed to check for $ _ SERVER ['orig _ PATH_INFO '] when $ _ SERVER ['path _ info'] is absent

See the last section of http://www.binarytides.com/path_info-orig_path_info-apache-and-php/
Finally ~
Changing the url as you like,
Moderator also to support ah, personal work http://bbs.youyax.com/

Have you finalized this stuff?

Have you finalized this stuff?
This is probably the case, and there is no function to be developed in the future,

Related Article

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.