Geoffrey Emery
Tech Goodness

301 Permanent Redirects in Asp.net 4.0 Get SEO On

May 22, 2009 08:13 by gemery

One of the most important things for web 2.0 sites are to be searchable, because every one wants top get more and more users for the search result.
For search engine Optimisation, every small aspect of the page is Important. One of the important things to do for this is to make sure all permanent redirection in your site is made with the 301 Host headers. I had earlier posted about this here.

With the new features in Dot net framework 3.5 we could have easily made this much simpler by adding an extension methods to the response class and make it look simple.
public void PermanentRedirect(this HttpResponse response, string destination)

{

        response.Status = "301 Moved permanently";

        response.AddHeader("Location", destination);

        response.End();

}

In the above code we have added a simple Extension method to the HttpResponse class. What this method does is always makes the redirect to a new page Permanent by adding appropriate response header.

Hence after this extension method we can easily makes call like Response.PermanentRedirect(“http://www.geoffreyemery.com”);
After looking at the importance of this functionality Microsoft has decided to add this functionality in the Asp.net framework itself. Now with Asp.net 4.0 new RedirectPermanent helper method that makes it easy to issue HTTP 301 moved permanently responses


Tags: ,
Categories: SEO
Actions: E-mail | Permalink | Comments (32) | Comment RSSRSS comment feed

Related posts

Comments

July 21. 2009 21:12

Social network marketing

Hi,
There are many "SEO Gurus" that will tell you commenting on blogs can boost your pageranking a lot. These gurus are also the ones with page rank of 0. My blog is only one month old, and it is already PR 2. While there are people who claim they can get PR 4+ in less than a month, I am here to tell you what really works to increase your page rank FREE.

Social network marketing

July 31. 2009 04:51

SEO

Good post, but have you thought about 301 Permanent Redirects in Asp.net 4.0 Get SEO On before?

SEO

August 13. 2009 06:49

website designer

Yes i agree with you. I have noticed that few ppl don't give much importance to 301 permanent redirection.

website designer

August 13. 2009 09:12

Classifieds free ad posting

Great article! Thanks a lot! Keep on posting!

regards

Classifieds free ad posting

August 18. 2009 00:05

SEO

BlogEngine.NET may be the simplest and most light weight ASP.NET blog at the moment, but still full featured.

SEO

August 18. 2009 00:05

income protection

The ASP.NET MVC Framework is a Model-view-controller pattern which Microsoft added to ASP.NET. It allows software developers to build a Web application as a composition of three roles: Model, View and Controller. A Model represents the state of a particular aspect of the application.

income protection

September 4. 2009 04:23

Site Tool

Wow, I never knew that 301 Permanent Redirects in Asp.net 4.0 Get SEO. That's pretty interesting…

Site Tool

September 10. 2009 05:47

convert psd to xhtml

Thanks for this post, I have searching this kind of information for how many times, this is really great... hope that you will continue sharing for your knowledge, I'll be back again to read some of your post...

convert psd to xhtml

September 22. 2009 23:47

Terry Walker

Thats great, I never knew this type of information before this blog.

Terry Walker

September 24. 2009 03:14

http://www.apuestas-del-casino.com/

You made me late for work reading this. Nice blog, just bookmarked it to come back later.

http://www.apuestas-del-casino.com/

September 24. 2009 23:06

Web design


Search engines optimisation, SEO, is an evolving 'science' and it keeps changing on purpose. Most articles that I read which involve both SEO and ASP.NET usually focus on how to programatically set the meta keywords tag and they tend to make it look like very important

Web design

September 26. 2009 00:21

mobile application software development

Good post, but have you thought about Permanent Redirects before?

mobile application software development

September 26. 2009 03:41

enterprise mobility solution

Wow, I never knew that Permanent Redirects. That's pretty interesting…

enterprise mobility solution

September 26. 2009 04:50

Jackpots dei casinò online

Useful information like this one must be kept and maintained so I will put this one on my bookmark list! Thanks for this wonderful post and hoping to post more of this!

Jackpots dei casinò online

September 29. 2009 04:37

Internet marketing


Search engines optimisation, SEO, is an evolving 'science' and it keeps changing on purpose. Most articles that I read which involve both SEO and ASP.NET usually focus on how to programatically set the meta keywords tag and they tend to make it look like very important.

Internet marketing

October 6. 2009 13:57

Chicago SEO

So I learned something new today, something I was completely unaware of in my SEO efforts. Thank you, I really find your entire blog interesting and responsive to current issues.

Chicago SEO

October 10. 2009 03:55

SEO Italia

I was just thinking about 301 Permanent Redirects in Asp.net 4.0 Get SEO On and you've really helped out. Thanks!

SEO Italia

October 12. 2009 03:29

games

In the above code we have added a simple Extension method to the HttpResponse class. What this method does is always makes the redirect to a new page Permanent by adding appropriate response header.

games

October 13. 2009 02:29

SEO ranking

For search engine Optimisation, every small aspect of the page is Important.

SEO ranking

October 13. 2009 05:39

Direct Payday Cash Advance

Do you have any more info on this?

Direct Payday Cash Advance

October 13. 2009 14:25

cash loans

Finally, got what I was looking for!! Thanks.

cash loans

October 13. 2009 21:33

win at casino

Your blog is very nice, thank you for the news you posted every day.

win at casino

October 14. 2009 21:59

pr agency melbourne

One of the most important things for web 2.0 sites are to be search able, because every one wants top get more and more users for the search result

pr agency melbourne

October 20. 2009 18:38

online gambling

I am trying to learn web designing, so I am gathering any resources that can help me with my study. Reading this kind of post help me a lot and gives me a lot of ideas. Thanks

online gambling

October 20. 2009 22:47

easy candy recipe

I posted your blog to my facebook group


Regards

Hugh

easy candy recipe

October 22. 2009 15:36

aion items

When is the next post comming on this topic.


Regards

james

aion items

October 22. 2009 16:02

aion gold

Hi nice site design


Regards

barry

aion gold

October 31. 2009 23:52

personal loans

I just hope to have understood this the way it was meant

personal loans

November 1. 2009 22:49

Mortgage Loan Modification

Good post, but have you thought about 301 Permanent Redirects in Asp.net 4.0 Get SEO before?

Mortgage Loan Modification

November 5. 2009 05:22

faxless payday loans

Do you make money out of this blog? just curious

faxless payday loans

November 10. 2009 03:00

payday loans

I like what I see. keep it going

payday loans

November 10. 2009 05:23

powerpoint business presentations

What are the other features of web 2.0 sites?

powerpoint business presentations

Comments are closed