Wanted: You!

10. December 2008

If you are a junior or senior web developer that talks C# ASP.NET or PHP, you're the one we're looking for. We have some great projects and opportunities for you. For those that have a development background and are eager to learn more about it with the prospection of some nice projects, just contact us. Maybe we have a nice job for you.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

, ,

301 Redirect in ASP.NET - The SEO friendly redirect

22. April 2008

301 redirects in ASP.NETWhen you run a website, there are times that you'll need to redirect webpages to other webpages. There are two key ways to accomplish this task, issuing a 301 redirect or a 302 redirect. What you might not know is that a 301 redirect is search engine friendly and a 302 redirect is not. 301’s will safely tell the search engines that one page has been permanently moved to a new location, while 302’s tell the search engines that it’s a temporary redirect (which can cause problems down the line.) This shouldn’t be news for anyone working in the search industry, but might be news for website owners outside of the industry.

Since most redirect in ASP.NET are 302's, we need a way to get a 301 redirect in code that is much more SEO  friendly. I included a piece of code to show you how this is done.

Add these lines of code to your Page_Load event to get a 301 redirect:

Response.Status = "301 Moved Permanently";
Response.AddHeader("Location",
http://www.your-new-location.com);
Response.End();

 

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Development ,