From apache to iis, I encountered the problem of converting .htacess to httpd.ini. After groping, I got the following
Conclusion You can try it, not necessarily right. First look at the source code in .htacess
RewriteEngine On RewriteCond %{HTTP_HOST} !^www.45it.net$ RewriteRule ^(.*)$ http://www.45it.net/$1 [R=301,L , NC] RewriteBase /RewriteRule ^([^-/\\.\\_\\-]+)\\.html$ $1.php? RewriteRule ^([^-/\\.\\_\\-]+)-op([^ -/]+)-sor([^-/]+)-det([^-/]+)\\.html$$1.php?op=$2&sor=$3&det=$4 RewriteRule ^([ ,null,null,3],^-/\\.\\_\\-]+)-op([^-/]+)-sor([^-/]+)\\.html$ $1.php?op=$2&sor=$3 RewriteRule ^ ([^-/\\.\\_\\-]+)-sor([^-/]+)\\.html$ $1.php?sor=$2 RewriteRule ^([^-/\\.\\_\\-]+ )-op([^-/]+)\\.html$ $1.php?op=$2 RewriteRule ^([^-/\\.\\_\\-]+)-page([^-/]+)\\. Html$ $1.php?page=$2 RewriteRule ^([^-/\\.\\_\\-]+)-op([^-/]+)-sor([^-/]+)-page([^ -/]+)\\.html$$1.php?op=$2&sor=$3&page=$4
Next look at the http.ini writing after conversion
[ISAPI_Rewrite] RewriteRule /([^-/\\.\\_\\-]+)\\.html$ /$1.php? RewriteRule /([^-/\\.\\_\\-]+)-op([^-/]+)- Sor([^-/]+)-det([^-/]+)\\.html$/$1.php?op=$2&sor=$3&det=$4 RewriteRule /([^-/\\. \\_\\ -]+)-op([^-/]+)-sor([^-/]+)\\.html$ /$1.php?op=$2&sor=$3 RewriteRule /([^-/\\. \\_\\-]+)-sor([^-/]+)\\.html$ /$1.php?sor=$2 RewriteRule /([^-/\\.\\_\\-]+)-op([^ -/]+)\\.html$ /$1.php?op=$2 RewriteRule /([^-/\\.\\_\\-]+)-page([^-/]+)\\.html$ /$1. Php?page=$2 RewriteRule /([^-/\\.\\_\\-]+)-op([^-/]+)-sor([^-/]+)-page([^-/]+ )\\.html$/$1.php?op=$2&sor=$3&page=$4
In the .htacess conversion httpd.ini conversion result, we obviously see the changes we made. The colored part of the place is modified. In the .htacess conversion httpd.ini conversion, it is necessary to let apache and iis understand what we want it to do. The above code is not difficult to see: The first is to change the definition of the rule, from rewrite_module Become isapi_rewrite Second, the path is changed, the path of .htacess is defined in the header, and httpd.ini is defined in each rule. When .htacess converts httpd.ini, the ^ symbol in .htacess is changed to /, Add the path /in front of the stand-alone page, to understand this /should be the root directory of the relative directory.
zh-CN"],null,[0.9869619],zh-CN"]]]
Previously just looking at the boring text version of the server returned the stat
IIS domain name binding: Lets take the site named test as an example to explain th
with Hpyer-V Why choose Microsoft Private Cloud In the enterprise, the deployment of private clouds
found that many users do not understand the database user permissions settings, the following for ev
IIS failed to start "The system could not find the specified path"
How to prevent ASP Trojan from running
Webpage hanging horse and dark chain detection
The server has a solution to the TEMP table space expansion limit
Analyze the cause of Service Unavailable
IIS server Web access prompts for password question
Domain Controller Basics Understanding the
Windows 7, how to partition unallocated disk space
How to solve the problem that Windows7 notebook wireless has a signal but can't connect
Nvidia graphics card users please note that Windows 10 auto-update drivers may cause failures
How does Win7 change the drive letter? Win7 modify system drive letter tutorial
Windows 7 operating system is the most simple and practical tutorial
Win8 Create Picture Password and Pin Code
CF8 weekend fun to play the fourth week to kill the enemy 50 to send sniper suit activity website
Teach you XP remote assistance function
Win8.1 update system appears "This update does not apply to your computer" What is the problem