I had a bit of trouble understanding the concepts of Isapi rewrite and once it was figured out. I thought I would share it.

I wanted a this:

http://www.somesite.com/article/1234

to call the original page

http://www.somesite.com/article.asp?id=1234

This would obviously increase the SEO of the webpages as i could have something meaningful as apposed to something that had 1234 as a querystring.

If your provider has isapi rewrite installed then all you do is upload a file called httpd.ini into the root of your website and put this into the file.

[ISAPI_Rewrite]

RewriteRule /article/(\d+) /article.asp\?id=$1 [I,L]

And then it just works. Very cool. This is obviously the beginning and you can see that this can easily be changed to something like this:

http://www.somesite.com/1 or http://www.somesite.com/xy5R3

which is the beginning of a URL shortening service like http://urls.co.za

Hope that helps.

About Paul Ogier

Paul Ogier has written 202 posts.

Paul Ogier is an IT Guru, Website Developer, and generally a nice guy. He loves code and he loves design.