URL rewriting with your web server - its not hard!

URL Rewriting allows you to recode ugly URLs like

into something like

...while having a valid url...

...still passed to ColdFusion or your coding language of choice.

Using the url examples above I will take you through implementation of rewriting in Apache with mod_rewrite and in IIS using a plugin ISAPI_Rewrite.

[More]

301 Permanent redirects with Apache

Following on from my previous posts on 301 redirects, if you have access to the IIS administrator or to the Apache httpd.conf file, you can achieve the same outcome without any server side processing and have the redirect handled faster via the webserver.

The 301 status code is used to indicate that a page has permanently moved, you would want to use this for many reasons:

  • Your page has moved
  • You have changed server languages e.g. use of .cfm instead of .php
  • Search engine optimisation - www. vs no www prefix on your domain

So lets look at how we do this in Apache, and soon we will do IIS.

[More]

BlogCFC was created by Raymond Camden. This blog is running version 5.9.001.