Tuesday, August 5, 2008

Create SEO friendly URL's in IIS

One thing that really bothers me is when people over-complicate a system for no reason.

Real life example:
A contractor that was hired who implemented a whole ruby on rails CMS tool for a website. The site is 99% static content and could be coded using 99% shtml and a few php scripts. Now changes are required and the contractor is long gone (typical). No one likes the interface for updating the site and the site has the potential to be hacked because of multiple vulnerabilities in Ruby.

I really dont want to break the site and I needed to come up with a solution so I decided to make templates of the site and use shtml and php. The problem then became that all the URL's that were currently being served through the CMS were all "SEO friendly". The solution we needed would have to allow the URL's from the old site to work on the new site, enter mod_rewrite.

I have worked with Apache's mod_rewrite module before with success, but this project required IIS. The requirements for my search were that whatever the solution that it be free. Ionics Isapi Rewrite Filter. The project is current and active, documentation is very well done, and the author gives you both source code and application files.

If you are new to this type of thing, I would also recommend going through the rewrite examples from Helicon Tech's ISAPI_Rewrite 3 product.

No comments: