Browse by Tags

Related Posts

  • Redirects using Code Behind

    Good Afternoon, We have a handful of content pages which are no longer around, so we would like to redirect users to alternative pages w/o causing a bad user experience and only generate our 404 custom error page when it's absolutely necessary. We've established a table in our db to handle redirects...
    Posted to Getting Started (Forum) by trunkmusic75 on 06-04-2009, 12:00 AM
    Filed under: redirects, 301
  • 301 redirect in global.asax file not working while others are.. please help to figure out why?

    Hi all, I have a website which uses a global.asax for several reasons (URL rewriting, 301 redirect some deadlinks..) The code for 301-redirect works just fine for urls like catching the domain without www. : string url = HttpContext.Current.Request.Url.ToString(); if ( url.Contains( "http: //mydomain...
    Posted to Configuration and Deployment (Forum) by keetje on 05-04-2009, 12:00 AM
    Filed under: redirect, url, 301, Global.asax Deployment, asp.net configuration
  • 301 redirect with dynamic links and global.asax

    We changed our url rewrite on our shopping cart. I would like to do 301 redirects from all the old pages to the new. The only way I've been able to get this to work is to add code like this into the global.asax page: protected void Application_BeginRequest( object sender, EventArgs e) { if ( HttpContext...
    Posted to Configuration and Deployment (Forum) by meer2005 on 09-30-2008, 12:00 AM
    Filed under: 301, Global.asax
  • Re: 301 Redirect Question

    You can either use URL Rewriting and have both pages, but that would get you the duplicate content penalty. Or just create a 301 httpModule to do the 301 status code for you with the new destination. Here are some articles on my Blog related to this: http://professionalaspnet.com/search.aspx?q=301&p...
    Posted to Getting Started (Forum) by docluv on 10-07-2007, 12:00 AM
    Filed under: httpmodule, 301
  • URI Redirects

    Good Afternoon, My question is quite lengthy and I will do my best to provide full details to present my issue clearly. Task: I want to redirect certain urls to specific pages Items: 1. I'm inserting the old urls into a db table and in this same table I'm associating the new path 2. I have logic...
    Posted to C# (Forum) by trunkmusic75 on 07-01-2009, 12:00 AM
    Filed under: redirects, 301
  • Migrating ASP to ASPX.... where to set 301 redirects

    Hello, I'm updating around 15 pages from .asp to .aspx (.net 2.0) My question is, do I have to put a header redirect 301 (permanent redirect) on each old file, or can I put it in global.asax file with a case checking for any of the 15 files? I some tries to go to old.asp will it execute global.asax...
    Posted to Migrating from ASP to ASP.NET (Forum) by diegolaz on 11-08-2009, 12:00 AM
    Filed under: asp, 301, ASP 2.0, Permanent redirect
Page 1 of 1 (6 items)