Results 1 to 2 of 2

Thread: url rewriting help

  1. #1
    Join Date
    Sep 2005
    Posts
    36
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default url rewriting help

    Hi,

    Are there any help files on how to use the url rewriting feature in helm? I have a site where the product pages are www.site.com/products/default.asp?id=222 and it would be nice to change them to www.site.com/productcategory/productname/

    Also, in my website, do I link to the querystring url or can I link to the better versions? I am new to this rewriting lark.

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    To make an url like www.site.com/productcategory/productname/ appear to your web application as ?id=222 you would need to do one of two things:
    • define each possible case seperately, matching every pretty URL to its ?id= URL equivalent (tedious stuff if you ask me, and hard to maintain)
    • map the pretty URL to something consistent like ?cat=productcategory&prod=productname, and then use logic in your application to work out what id any specified cat and prod are for.

    I'll give you a third option to, and that is to use firendly URLs that take the form www.site.com/key1/value1/key2/value2/, you can then use a single easy rewrite rule to map it to www.site.com/index.asp/key1/value1/key2/value2/, as then some easy logic in your application can break down the argument to it's constituent key=>value pairs. The beauty of this is it leaves the keys flexible.

    Finally, yes, whatever format you choose for your URLs, it would defeat the point if you don't use it for your links.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New site, old email links, url rewriting?
    By creativeworks in forum ASP.NET
    Replies: 11
    Last Post: 13th May 2007, 01:21 AM
  2. URL Rewriting question
    By roki13 in forum Technical Support
    Replies: 3
    Last Post: 9th February 2007, 09:01 AM
  3. Rewriting
    By spike in forum Sales and Service Feature Enquiries
    Replies: 5
    Last Post: 22nd September 2005, 07:32 PM
  4. URL rewriting
    By ninjalabs in forum Technical Support
    Replies: 1
    Last Post: 13th June 2005, 03:54 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •