Aug
9

Wordpress Friendly URL in Windows IIS

Author andy18    Category Others     Tags

Most of the users who is using Wordpress love one of the features – Premalink that will help your blog to have a better position with search engine crawl. By default, Wordpress display your post to something like this http://www.andy.name.my/?p=456 . We will need to change the way this display to a more friendly readable format by the search engine spider – something like http://www.andy.name.my/index.php/year/month/date/post_title/. Other than the above reason, it gives some rough summary about what your post is to your readers.

Wordpress is written in PHP based environment and is capable of running on any operating system backend – Windows or Linux; as long as the server support PHP and MySQL.

Users who host their Wordpress in Linux environment won’t find any issues enabling Premalink for their blog as Apache comes with a module namely mod_rewrite that support this. However, users who has setup their Wordpress at Windows is not able to enable this option – Reasons? Most of the hosting provider by default is running IIS on the Windows Server environment and the main thing is that mod_rewrite module is only applicable for Apache. Guess what? I am one of the user who host my blog on a Windows and find it problematic to enable the permalink. While I was thinking to switch over to Linux, I came across this post which have save my time of doing the migration of files over.

It’s some simple to have Premalink enabled for your Wordpress in Windows IIS environment as follow:

1. Create a php.ini file with the following lines in the file and upload it to your root directory of your Wordpress installation directory.

cgi.fix_pathinfo = 1
cgi.force_redirect = 0

2. Enable the Premalink options in your WordPress by going to Options > Premalinks

Post comment