Pretty Permalink on IIS
-
Hi,
I am new to wordpress. My page is running on IIS 6 and PHP 5. provided by http://www.ixwebhosting.com.
I want to have a pretty permalink as follows /%year%/%monthnum%/%postname%/
I don’t want the index.php in my page. So I skipped the .ini config method which gave me /index.php/%year%/%monthnum%/%postname%/
I tried the 404 redirection method. I set my error page as follows.
http://www.mydomain.com/wp-404-handler.php. This 404 php has the follwing content<?php
$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’);
?>Still I am not able to get the pretty permalink. I am still getting the page can not be found error for all my posts.
Can anyone help me to solve this on IIS?
Thanks and Regards,
Vijay
The topic ‘Pretty Permalink on IIS’ is closed to new replies.