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:
- 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.
- 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.
- 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)
- 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]
- Save and exit this file.
- To complete your IIS changes, Go to Start, Run and run the command: iisreset/restart
- Now lets change your WordPress settings. Navigate to http: // yourblog/WP-Admin
- Navigate to the left side menu bar-> Settings-> permalinks
- 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.
- 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.