1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

ASP Newbie needs re-write advice?

Discussion in 'C#' started by Matt Inertia, Jul 22, 2008.

  1. #1
    Hi people,

    I am an seo who recently changed companies. In the past I've predominantly worked with html/php sites and have rarely come across ASP sites. The new company that I work for construct all their sites using asp and host them all on the mandatory windows server.

    This has presented me with a problem... at my previous company i used htaccess for all my redirects, url re-writes etc... But i no longer have this resource at my finger tips.

    Does anyone have any advice? I've read about isapi but the sites are hosted on a shared server.
     
    Matt Inertia, Jul 22, 2008 IP
  2. dgxshiny

    dgxshiny Greenhorn

    Messages:
    65
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    23
    #2
    To any page, simply add

    <%
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location","http://www.new-url.com/"
    %>
    Code (markup):
     
    dgxshiny, Jul 22, 2008 IP
  3. artivity

    artivity Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    A 301 redirect will do absolutely nothing for you in relation to url rewriting. You simply cannot do it with classic asp without an isapi extension. Ionics is free and uses similar structure to apache's mod rewrite. Contact the shared server host and ask if they will install Ionics ISAPI Rewrite for you and register the .dll in a folder you have access to. This will need doing for each site hosted on the server using unique folders or uniquely naming the dll files and ini files accordingly in one folder.

    http://www.codeplex.com/IIRF
     
    artivity, Jul 23, 2008 IP
  4. artivity

    artivity Guest

    Messages:
    40
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If they wont do that for you, I would consider moving to a more friendly host. Although that might not be your decision to make. Good luck! :)
     
    artivity, Jul 23, 2008 IP
  5. Matt Inertia

    Matt Inertia Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi artivity, thanks for the reply. Moving servers isnt my choice unfortunately. I thought isapi might be the only way! I guess i have no choice other than getting the hosting company to install it!
     
    Matt Inertia, Jul 24, 2008 IP
  6. Matt Inertia

    Matt Inertia Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    One more question. Were using fasthost and they wont install it. Any recommendations of a host provider who will setup isapi?
     
    Matt Inertia, Jul 24, 2008 IP
  7. Matt Inertia

    Matt Inertia Peon

    Messages:
    17
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    bumpity bump!
     
    Matt Inertia, Aug 28, 2008 IP
  8. vihutuo

    vihutuo Well-Known Member

    Messages:
    1,511
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    180
    #8
    If you are using ASP.NET , check out URLRewriter.net .
     
    vihutuo, Aug 29, 2008 IP