In IIS, how does one implement static rewrite? EspeciallyZen cartSuch as php type websites should be frequently encountered. The tutorial is also found online. The experiment can be successful. Here we will share it.
First, we need to download an ISAPI_Rewrite, which has a lite version and a full version. Generally, the lite version can only be configured globally for the server, and the full version can be used to perform pseudo-static configuration for each website on the server. for webmasters, the lite version is enough. download: http://www.isapirewrite.com/download/isapi_rwl_0055.msi
Second, after the download is complete, you can find the. msi file in the installation package and install it. you can install it anywhere. The default is to install it under C: \ Program Files \ Helicon,Note that the everyone directory must have the read permission.. At that time, I had strict server permissions. By default, the EVERYONE directory of Helicon was installed without any permissions, and the result was always: Service Unavailable.
Third: open Internet Information Service, right click, web site properties, and click the ISAPI Filter tab. Add a filter. You can enter the name here, specify ISAPI_Rewrite.dll in the path, and click OK. After the filter is successful, an arrow on the green image is displayed.
Finally, edit httpd in the default C: \ Program Files \ Helicon \ ISAPI_Rewrite directory under your installation directory. ini write your rewrite rules here. Note that the file is read-only by default. After editing, it is recommended to set it back to read-only. If it is zen cart, it is as follows:
[ISAPI_Rewrite] #3600 = 1 hour set the cache time to 1 hour # Www. YOURDOMAIN. comCacheClockRate 3600 # Set the regular expression to replace the number of variables. repeatLimit 32 # www. YOURDOMAIN. comRewriteRule ^ (. *)-p -(. * developer.html (\?)? (.*)? /Index \. php \? Main_page = product_info & products_id = $2 & $4 [L] RewriteRule ^ (. *)-c-(. * ).html (\?)? (.*)? /Index \. php \? Main_page = index & cPath = $2 & $4 [L] RewriteRule ^ (. * has -m-(%0-9%%%%%.html (\?)? (.*)? /Index \. php \? Main_page = index & manufacturers_id = $2 & $4 [L] RewriteRule ^ (. * has -pi-(%0-9%%%%.html (\?)? (.*)? /Index \. php \? Main_page = popup_image & pID = $2 & $4 [L] RewriteRule ^ (. * 0000-pr-(0-90000000000000000.html (\?)? (.*)? /Index \. php \? Main_page = product_reviews & products_id = $2 & $4 [L] RewriteRule ^ (. * has -pri-(%0-9%%%%.html (\?)? (.*)? /Index \. php \? Main_page = product_reviews_info & products_id = $2 & $4 [L] # For Open Operations Info Manager # Www. YOURDOMAIN. ComRewriteRule ^ (. * 0000-i-(0-90000000000000000.html (\?)? (.*)? /Index \. php \? Main_page = info_manager & pages_id = $2 & $4 # For dreamscape "s News & Articles Manager # Www. YOURDOMAIN. ComRewriteRule ^ news /? $ Index \. php \? Main_page = news & [L] RewriteRule ^ news/rss. xml/index \. php \? Main_page = news_rss & [L] RewriteRule ^ news/archive /? /Index \. php \? Main_page = news_archive & [L] RewriteRule ^ news/(%0-9%%%4%%%%-(%0-9%%%2%%%%-(%0-9%%2%%%%.html (\?)? (.*)? /Index \. php \? Main_page = news & date = $1-$2-$3 & $5 [L] RewriteRule ^ news/archive/(%0-9%%%4%%%-(%0-9%%2%%%%.html (\?)? (.*)? /Index \. php \? Main_page = news_archive & date = $1-$2 & $4 [L] RewriteRule ^ news/(. * has -a-(%0-9%%%-comments.html (\?)? (.*)? /Index \. php \? Main_page = news_comments & article_id = $2 & $4 [L] RewriteRule ^ news/(. * has -a-(%0-9%%%%.html (\?)? (.*)? /Index \. php \? Main_page = news_article & article_id = $2 & $4 [L] # All other pages # Www. YOURDOMAIN. Com # Don "t rewrite real files or directoriesRewriteCond % {REQUEST_FILENAME }! -F [NC] RewriteCond % {REQUEST_FILENAME }! -DRewriteRule ^ (. * mirror.html (\?)? (.*)? /Index \. php \? Main_page = $1 & $3 [L] # Www. YOURDOMAIN. Com description and declaration:
I mentioned earlier that ISAPI_Rewrite has the lite version and the full version. The previous address looks like the lite version. Therefore, it is estimated that it will be useful to all websites under iis. Pay attention to this when using it, I have a full version of the cracked version on the Internet, but it is hard to say that I have never used it. I have not verified this Zen cart rewrite rule by myself. It was given to me by a friend, so you can understand this point when using the copy.
Reprint please note from: http: www.ming-seo.org /? P = 418
Original article, reprinted Please note:Reposted from online earning tutorial _ online earning blog _ black hat Seo _ Sanyu's blog
Link:Zencart iis pseudo-static setting test available