Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

A Place to share c#.Net script which are useful to developers

Moderators

C#.NET Scripts

Script to send permanently redirection status code instead of temporary redirection code

Mar 25 2012 12:00AM by Ramireddy   

If we are redirecting from one page to another page, using Response.Redirect will send "302" status code, this results in SEO issues. To improve SEO performance, sending "301" status code will be helpful. In .NET 4.0 framework Response.RedirectPermanent method is provided. However, if we are using the framework before 4.0, we can use below script.

Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","/modules/4/whatisnew/471/net-framework-40.aspx?tab=tags&tn=category");


Ramireddy
2 · 41% · 12972
3
 
0
Worked
 
0
Failed
 
0
Lifesaver
 
0
Production
 
0
Unwise



Submit

Your Comment


Sign Up or Login to post a comment.

"Script to send permanently redirection status code instead of temporary redirection code" rated 5 out of 5 by 3 readers
Script to send permanently redirection status code instead of temporary redirection code , 5.0 out of 5 based on 3 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]