![]() |
|
|||||||
| Blog(博客)/Wiki(维客)/RSS/Cms Blog(博客)/、Wiki(维客)、RSS、Cms等WEB 2.0相关技术讨论专区。 |
|
|
Thread Tools | Display Modes |
|
#2
IP: 218.2.66.101
|
|||
|
|||
|
Create Rewrite Rule
1. Open the Web.config file (located in the same directory as the WordPress files). If you do not have a Web.config file in the WordPress directory, create it. 2. Copy and paste the following XML section into the system.webServer element: <rewrite> <rules> <rule name="Main Rule" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php" /> </rule> </rules> </rewrite> This rule matches any requested URL; if the URL does not correspond to a file or a folder on a file system, then the rule rewrites the URL to Index.php and determines which content to serve based on the REQUEST_URI server variable that contains the original URL before it was modified by the rule. |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How To: Run Apache HTTP Server and IIS on Windows Server 2003 | yahoo | 服务器环境搭建 | 0 | 2009-09-11 08:43 AM |
| IIS与Apache共用80端口方法 | yahoo | 服务器环境搭建 | 0 | 2009-09-11 08:41 AM |
| IIS与Apache共用80端口方法 | yahoo | 服务器环境搭建 | 0 | 2009-09-11 08:40 AM |
| wordpress 搜索引擎优化的二十条实用技巧 | car | 搜索引擎优化 | 0 | 2008-03-11 08:33 AM |
| WordPress 中文包 | sunshine | Blog(博客)/Wiki(维客)/RSS/Cms | 0 | 2007-03-12 10:16 AM |