Skip to main content
Participant
December 3, 2010
Question

IIS Mod-Rewrite - ColdFusion

  • December 3, 2010
  • 1 reply
  • 690 views

I want to make my url`s more "userfriendly" and easier to remember.

This is what I have today: www.mydomain.com/products/product.cfm?prodid=101

I want it to look something like this: www.mydomain.com/products/productname/

My problem is that I have no experience in making regular expressions, and I cant find out how to change my url`s.

My webhotel is using IIS Mod-Rewrite: http://www.micronovae.com/ModRewrite/ModRewrite.html

They have enabled the use of this on my website.

The way I understand this "all" I need to do is make some regular expressions and put in an .htaccess-file in the root of my website, then my URL`r should "convert". Am I right?

Anyone have an idea how to do this? I would really appreciate an example. I have search the web and tried many different things, but with no luck. The last thing I tested was the examples here: http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html

If anyone can point me in the right direction, I would really appreciate it, thanks!

    This topic has been closed for replies.

    1 reply

    Owainnorth
    Inspiring
    December 5, 2010

    Quite simply the "right direction" is just to Google for it! Searching for "mod_rewrite examples" brings back hundreds of thousands of results, the top of which for me is a very good beginner's guide.

    What you want to do it pretty simple as far as mod_rewrite is concerned, and shouldn't be too hard to figure out.

    O.