Recommended iis url rewriting Guide

Source: Internet
Author: User

IIS virtual hosts support URL rewriting using. htaccess
Download the appropriate version here
Http://www.helicontech.com/download.htm

Download the manual installation package isapi_rewrite3_0042_manual.exe
Manually decompress the package to a directory on the server.
Open IIS Manager-> select website properties-> ISAPI filter-> enter ISAPI_Rewrite in the name
Select the decompressed file ISAPI_Rewrite.dll, click OK, and click OK.
Close the Properties dialog box and view the website properties again-> to ISAPI filter
If the Green Arrow is displayed, the Rewrite module is successfully installed.
If the load fails, check whether IIS_WPG has the permission to read and run.

Modifying http. conf will have a global impact, which may cause conflicts and leave the content blank. The site already supports. htaccess.
As described in discuz

Apache Web Server (Virtual Host user)
Before proceeding to the following settings, please first consult your space service provider to check whether the space supports Rewrite
And whether parsing of. htaccess files in the site directory is supported. Otherwise, it cannot be used even if it is set as follows.
Check whether the. htaccess file exists in the directory where the forum is located. If not, create this file manually.
The. htaccess file cannot be directly created in Win32 system. You can copy one copy from other systems,
You can also download this file in the Discuz.net Technical Support Section. (In fact, simply rename the file in dos or save it as NotePad)
Edit and modify the. htaccess file and add the following content:
# Enable RewriteEngine Mode
RewriteEngine On

# Modify/discuz in the following statement to your forum directory address. If your program is in the root directory, change/discuz/
RewriteBase/discuz

# Do not modify Rewrite system rules
RewriteRule ^ archiver/(fid | tid)-[\ w \-] + \. html) $ archiver/index. php? $1
RewriteRule ^ forum-([0-9] +)-([0-9] +) \. html $ forumdisplay. php? Fid = $1 & page = $2
RewriteRule ^ thread-([0-9] +)-([0-9] +)-([0-9] +) \. html $ viewthread. php? Tid = $1 & extra = page \ % 3D $3 & page = $2
RewriteRule ^ space-(username | uid)-(. +) \. html $ space. php? $1 = $2
RewriteRule ^ tag-(. +) \. html $ tag. php? Name = $1

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.