Toll Free: 1-877-695-7388

GTA: (647) 699-2838

Search Engine People
  • SEO
  • SEM
  • CRO
  • Display
  • Blog
  • Why Us
  • Contact
  • Join Our Team
  • Get A Quote

Toll Free: 1-877-695-7388

GTA: (647) 699-2838

Using 301 redirects – code snippets and tool

Donna Fontenot | December 8th, 2004
Tweet
Share
Share
Pin
0 Shares

Eventually, the question of how to use 301 redirects comes up in every SEO forum. You can find a quick guide that gives code snippets for ASP, ASP.NET, PHP, ColdFusion, as well as instructions for IIS and htaccess at www.webconfs.com/how-to-redirect-a-webpage.php. It also has a handy tool to test your redirection as well. Simple, direct, easy to understand...check it out.

Tweet
Share
Share
Pin
0 Shares
Posted in SEO

One thought on “Using 301 redirects – code snippets and tool”

  1. BitStar Software says:
    November 16, 2008 at 2:20 am

    For asp.net I do not believe it is quite well explained there. Sure, the code snippet works fine if you put it in Page_Load and don’t do anything else in the page but if you want to 301 redirect through something like Response.Redirect it’s not going to work simply because Response.End() is not called. This is how we do it in our software projects:

    protected void Redirect301(string url)
    {
    Response.Status=”301 Moved Permanently”;
    Response.AddHeader(“Location”,url);
    Response.End();
    }

Comments are closed.

Recent Posts

  • 3 Phase Approach to Evaluate Performance Marketing Initiatives
  • Leverage the Synergy Between Inbound & Performance Marketing
  • 5 Paid Advertising Tactics to Improve Performance Marketing
  • How CRO Boosts Performance Marketing
  • SEO for Performance Marketing: You Can’t Afford to Ignore It

Categories

  • Analytics & ROI Analysis
  • Company News
  • Content
  • Conversion Optimization
  • CRO
  • Display Advertising/RTB
  • Email Marketing
  • En Español
  • En Français
  • Inbound Marketing
  • Lead Nurture & Marketing Automation
  • Local Search
  • Marketing
  • Mobile
  • Partnership Marketing
  • PPC
  • PR
  • SEO
  • Social Media Marketing
  • Web Design

Additional Posts

Keyword difficulty tool assesses competitiveness

December 7th, 2004 | by Donna Fontenot

How to ask for SEO help

December 6th, 2004 | by Donna Fontenot

Easily viewing the source of a meta refreshed page

December 5th, 2004 | by Donna Fontenot

LET'S TALK

Need more information or want to get in touch?

Get in touch!
  • SEO
  • SEM
  • Display
  • Blog
  • Why Us
  • Join Our Team
  • Contact Us
  • Local SEO
  • Small Business SEO
  • Enterprise SEO
  • International SEO

LOCATION

1305 Pickering Parkway,
5th Floor Pickering, L1V 3P2

PHONE

Toll Free: 1-877-695-7388
Greater Toronto Area: (647) 699-2838

Social

© Search Engine People Inc. 2023 – Canada’s Top Digital Agency
© SEP 2023 – A Search Engine People Company | Privacy Policy

Search Engine People