how to rewrite URL's using classic ASP? if its possible

Discussion in 'C#' started by Jekwueme, Nov 14, 2012.

  1. #1
    Hello

    I want to know if its possible to re-write a URL like this:
    www. doo. co. uk/example/example/productsCat~prodID~19~prod~Bell%20and%20Bells.htm

    into something like this: www. doo. co .uk/example/example/bell-and-bells.htm

    using classic asp. This might sound stupid but i have no access to the IIS server and i cant find their web.config file either so i can only try and code it. I tried Google but i haven't really found much

    thanks in advance.
     
    Last edited: Nov 14, 2012
    Jekwueme, Nov 14, 2012 IP
  2. vbrocks

    vbrocks Active Member

    Messages:
    90
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    98
    #2
    No, not really.
    ASP.NET however can do rewrites natively in MVC3 or via custom http handlers.
     
    vbrocks, Nov 18, 2012 IP
  3. Jekwueme

    Jekwueme Greenhorn

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #3
    hehe yeah i thought so thanks for the reply :)
     
    Jekwueme, Nov 20, 2012 IP
  4. swestner

    swestner Member

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    There are a number of workarounds depending on the environment.

    - If you are using IIS7 you can do rewrites through the web.config.
    - if you are using older versions then you can try isapi modules like isapirewrite or iirf on codeplex
    - if you are on an older version with shared hosting and the provider will not allow you to install isapi modules then you could code a solution using 404 redirects and server transfer,
     
    swestner, Mar 6, 2013 IP