Results 1 to 2 of 2
Thread: 301 Redirect ASP .Net
-
01-16-2009, 10:53 PM #1
- Join Date
- Apr 2008
- Location
- Boston, MA
- Posts
- 13,232
- Thanks
- 745
- Thanked 729 Times in 564 Posts
- Blog Entries
- 4
- Feedback Score
- 4 (100%)
301 Redirect ASP .Net
You can use these codes for a 301 redirect of your asp pages
ASP Redirect
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location","http://www.new-url.com/"
%>
ASP .NET Redirect
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK
-
01-16-2009, 11:28 PM #2
Oh thats good information there, 301 redirects can be important, thanks Manik.
Amir Mullick, SEO and Internet Marketer.
Wanna learn more about SEO? Visit my SEO Blog and Gadgets Blog
Similar Threads
-
Show Message Before Redirect – ASP .NET
By manik in forum ASPReplies: 1Last Post: 04-21-2010, 12:06 AM -
Meta Redirect Code
By manik in forum HTML / DHTMLReplies: 7Last Post: 06-21-2009, 12:47 AM -
.Net HTTP Monitor Tool
By manik in forum ASPReplies: 3Last Post: 02-23-2009, 02:06 AM -
Convert VB .Net Code to C# .Net Code
By manik in forum ASPReplies: 0Last Post: 12-19-2008, 11:24 AM -
How to...
By micoblanco in forum Search Engine OptimizationReplies: 6Last Post: 12-16-2008, 12:31 AM



Reply With Quote



