The rewrite statement is invalid when it is migrated from apache to IIS.

Source: Internet
Author: User
The rewrite statement is invalid when it is moved from apache to IIS. for example, I have a rewrite statement to rewrite all requests to the index. php: Everything works normally in the apache space. in the IIS6 + isapi_rewrite3.0 environment, it cannot be run. it should be because different rules of the environment have changed. there is only one sentence. please switch between them... The rewrite statement is invalid when it is moved from apache to IIS.
For example, I have a rewrite statement to rewrite all requests to the index. php: Everything works normally in the apache space. in the IIS6 + isapi_rewrite3.0 environment, it cannot be run. it should be because different rules of the environment have changed. there is only one sentence. please switch between them ......

RewriteRule. index. php
------ Solution --------------------
Reference:
Reference: reference: seek further guidance ...... Continue to ask. few people will use iis, and apache and nginx are the world of php.
I know ...... But there is a need ......
Iis is the dll of isapi_rewrite3 ......


If you have configured IIS rewrite. You can use the following code Httpd. iniMedium


[ISAPI_Rewrite]

#3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32


# ThreadPost. php
RewriteRule ^ (. +) $ index \. php $1 [L]

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.