Web Designing India Web Hosting India SEO Services India Software Development India Free SEO Tools
Ultimate Web Solutions - Ultimate Web Solutions India -
Webmaster Articles, Submit Site Free Web Directory,
Web Marketing Articles by SEO Company India
India SEO Services & India Web Hosting Company
 

301 Redirect on a Windows Server

If you are not using a Unix or Apache server, you can still do a 301 redirect, if you are using .asp pages. Here's what you do:

Place the following code above your <html> tag or <!DOCTYPE>, if you have one:

<%@ Language=VBScript %>
<%
response.status="301 moved permanently"
Response.AddHeader "Location", "http://www.domain.com/file-location.html"
%>

If you are using .ASP.NET pages, the code should look like:

<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
response.status = "301 moved permanently";
Response.AddHeader("Location","http://www.domain.com/file-location.html");
}
</script>

The URL after "Location" should be the exact location to which you want the page to redirect.

Redirect in ColdFusion

<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.domain.com">

About The Author: SEO Consultant - Offers search engine optimization, link popularity building and search engine friendly website design services.
 

Search Engine Forum for Web Professionals

Web Solutions Services
» Website Designing
» Quality Web Hosting
» Domain Registration
» SEO Services India
» Software Development
» WebMaster Forum
» Articles Submission Directory
» Submit Your Article
   
» All Articles
» May 2005
» June 2005
» July 2005
» August 2005
» September 2005
» October 2005
» November 2005
» December 2005
» January 2006

Site Map
- Link Exchange Directory - Search The Directory - Article Disclaimer -