In WordPress, pretty permalink can easily enabled under ‘Settings‘ –> ‘Permalink‘. However if there is an error, you need to reconfim whether the mod_rewrite function has been enabled in the server.
You can add the following to your .htaccess file if it is Linux platform.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Extra steps if you do not have .htaccess uploaded:-
1. Open your Notepad and paste the above code
2. Save it as .htaccess and upload to your root directory.
You cannot use .htaccess under Windows platform as it will conflict with the IIS.
If you are using IIS version 6 in Windows server, you can enable pretty permalink via the guidelines below:-
1. Copy and paste the following codes to Notepad and save it as wp-404-handler.php:
<?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’);
?>
2. Go to your IIS and change the custom 404 error page to the destination of your wp-404-handler.php. If it gives you a choice between file and url, choose url.
3. Login to your WordPress and enable the permalinks. You may found under Options > Permalinks.
Credit to:-
http://www.keyboardface.com/archives/2007/09/07/update-for-wordpress-permalinks-on-iis/









