Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 3 of 3

Thread: page redirect

  1. #1
    jmarshallsea is offline Junior Member
    Join Date
    Sep 2009
    Location
    Dallas
    Posts
    10

    Default page redirect

    Hi

    We have page we would like customers to land on ....www.mydomain.com/b2b

    so I created a topic called b2b, but the url is now www.mydomain.com/t-b2b.aspx

    My bosses don't like this url, so I am wondering is it possible to create a plain html page that responds to www.mydomain.com/b2b ......and redirects the browser to the real (convoluted) page ?

    Thanks
    ....Jim

  2. #2
    MarkC is offline Developer
    Join Date
    Aug 2006
    Posts
    166

    Default

    Url-rewriting requires an extension to be mapped to(so as to be handled by asp.net), based on your pattern, that will get treated as a folder request by IIS.
    Though there are workarounds like using third party isapi filters.

    One pattern you can use though, you can map say for example b2b.aspx to your b2b topic page, so customers can type instead www.yoursite.com/b2b.aspx or t-b2b.aspx, which will redirect to the same page.

    C#/VB.NET Code:
     <urlrewrites>
            <
    rule url="/contact.aspx" rewrite="/driver.aspx?Topic=contact" /> 

  3. #3
    BFG 9000 is offline Senior Member
    Join Date
    Oct 2006
    Location
    South UK
    Posts
    882

    Default

    Alternatively, you can create an actual folder called b2b & in it just put a file called default.aspx which contains the following :-

    C#/VB.NET Code:
    <html>

    <
    head>
    <
    meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <
    meta http-equiv="refresh" content="0; URL=http://www.yourdomain.co.uk/t-b2b.aspx">
    </
    head>

    <
    body>

    </
    body>

    </
    html

    TTFN

    BFG