Pretty Permalinks are SEO / Human friendly urls for your blogs. Wordpress uses mod_rewrite module which is not supported by IIS.
If you are using IIS7 and have administrative privileges you can use Microsoft’s URL Rewrite Module , Read this for more information.
This article briefs about the technique used to make the permalinks work with IIS6.
Working with Permalinks on IIS6 (without admin privileges/ istallation)
- Option 1 (put index.php at the start of permalink)
/index.php/%year%/%monthnum%/%day%/%postname%/
to make this work in IIS , add the below lines to php.ini and store in the web root or download the file from here
cgi.fix_pathinfo = 1 cgi.force_redirect = 0
- Option 2 (Permalinks CSS using Custom 404 Redirect)
PHP version (see here for referred article)
Save the below code as a php file (Ex: 404-handler.php) or save the file from here
$qs = $_SERVER['QUERY_STRING']; $pos = strrpos($qs, '://'); $pos = strpos($qs, '/', $pos + 4); $_SERVER['REQUEST_URI'] = substr($qs, $pos); $_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI']; include('index.php'); ?>
- Once saved point set custom error page to the above file.
- Go to Options -> Permalinks in your Wordpress admin page, and choose an appropriate structure for your links.
ASP Version (see here for referred article)
- Download files here
- Upload htaccess.php and errorpage.asp into the root directory of your blog.
- Set the custom error page of your site to errorpage.asp.
- Change permalinks settings in the format you want. Ready to go.
If you any trouble installing the asp version you can comment here.
This article is more useful for people who use shared hosting or who donot have privileges to install any software, in case you have privileges to install softwares please use the below links
Wordpress URL Rewrite by Binary Fortress Software and Dean Lee
For more info please use this link.
January 13th, 2009 on 1:39 am
we are already the second option and is working very well.
March 27th, 2011 on 4:25 pm
I not to mention my pals appeared to be reviewing the good points found on your web blog and then the sudden I got a terrible suspicion I never expressed respect to the website owner for those techniques. All the men are actually for that reason thrilled to read through them and have now pretty much been tapping into these things. Appreciate your actually being indeed accommodating as well as for deciding on varieties of really good areas millions of individuals are really needing to learn about. My very own sincere regret for not expressing gratitude to earlier.
April 15th, 2011 on 2:31 am
Glad I’ve finally found somtenihg I agree with!
April 16th, 2011 on 5:07 am
I really like your blog.. very nice colors & theme. Did you design this website yourself or did you hire someone to do it for you? Plz answer back as I’m looking to construct my own blog and would like to find out where u got this from. kudos
April 16th, 2012 on 3:01 am
The solution doesn’t work for me though. I did everything according to the advice in this blog, bit after I change permalinks, I get the message: “the page cannot be found”.