Recently, I was working on a WordPress website for a client. For the development version I hosted that website on personal website ituri.net as a sub-domain and after completing the website, client asked me to upload the site to his domain in-order to make it live.
When I checked the client hosting server: it was a windows based hosting with IIS 6 having PHP support. So when I transferred all of the data to this server… later I found out that except the main home page, no other page was working… I as was getting IIS 404 error page. The reason for this was: I used WordPress permalinks to make the url understandable. Upon contacting the hosting provider they said: I have to use httpd.ini to make this work.
After spending some quality time, finally I have solved the problem and below is the httpd.ini code for WordPress:
RewriteCond Host: domain-name\.com
RewriteRule (.*) http\://www.domain-name.com$1 [I,RP]
RewriteRule ^/wp-admin/?$ /wp-admin/index.php [I,L]
RewriteRule /(?!index\.php)([^.]+?)/? /index.php/$1 [I,L]
I hope, this will help you save your time and focus your energy on more important things 🙂