Permanent Link settings for WordPress on IIS6

Source: Internet
Author: User
Tags install wordpress wordpress blog
On the Internet, there are several rewrite IIS isfilters. After testing, Google code's can't be installed, and the binaryxxxcan be used, but does .html seem to be unavailable? The following example shows how pageplug-in is used by both parties. All pageparts are postname.html.

If you install Wordpress on IIS you will notice your friendly URLs do not work. this is because WordPress wants to use an Apache add-on called "mod_rewrite. "The quick rundown of that this does is it will take your friendly browser
URL and actually change them to index. php on the back end. One problem with this method is that IIS does not load Apache Mod. Here is an easy and free way around und this:

  1. On your IIS server
    Download and install
    Isapi_rewrite lite. this filter does the job of mod_rewrite for IIS. when downloading make sure to use the free Lite version. this Lite version does not limit the product very much and will be perfectly fine (and free) for our Wordpress blog. just install
    Rewrite Lite to the default locations for this tutorial.
  2. Next Add the ISAPI filter to your IIS Site.
    You will find this setting by Right clicking youriis site-> properties-> ISAPI filters tab-> Add... Name the filter whatever you wish and your path to your executable shocould be:
    C: \ Program Files \ helicon \ isapi_rewrite3 \ isapi_rewrite.dll
    Click OK on both windows to save your settings.
  3. Next navigate to c: \ Program Files \ helicon \ isapi_rewrite3
    Here we will edit httpd. conf (note: this is the difference between the pay version and the lite version. in the pay version you will need to edit. htaccess file on your Web Folders root)
  4. Open the httpd. conf file in WordPad and paste in these lines:
    Rewritebase/
    Rewritecond % {request_filename }! -F
    Rewritecond % {request_filename }! -D
    Rewriterule ^ (. *) $ index. php? P = $1 [NC, l]
  5. Save and exit this file.
  6. To complete your IIS changes, Go to Start, Run and run the command: iisreset/restart
  7. Now lets change your WordPress settings. Navigate to http: // yourblog/WP-Admin
  8. Navigate to the left side menu bar-> Settings-> permalinks
  9. Now you get to choose how you want your posts to look. I choose a custom setting and just:/% postname % This is how you see this blog working today.
  10. Click "Save changes" and you shoshould see your new friendly URLs!

 

However, the configuration of httpd. conf in step 1 is incorrect. All pages are directed to the home page.

 

Later I used the following Configuration:

Rewriteengine on
Rewritebase/
Rewritecond % {request_filename }! -F
Rewritecond % {request_filename }! -D
Rewriterule ^ (Index \. php) * (. *) $ index. php/$2 [NC, l]

The test is normal.

 

For other configuration references, when the blog is not in the root directory (not tested)

Rule :-

Rewriteengine on
Rewritebase/
Rewritecond % {request_filename }! -F
Rewritecond % {request_filename }! -D
Rewriterule ^ blog/(. *) $ blog/index. php/$1 [NC, l]

Where "blog" is the subdirectory.

Turn permalinks on and use either

/% Postname %/for just a URL or
/Configure postnameapps.html for articles to end in. html I. e.

 

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.