homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

Perm Redirect: 301 vs. htaccess on Windows server

 6:00 pm on Mar 17, 2004 (gmt 0)

So many opinions on this topic from posts on WebmasterWorld.

Question: On a windows server, which method of permanently redirecting domain 1 to domain 2 is preferable:
1. 301
2. htaccess

If you know which, then would you please provide some details.

Thanks in adv.



 4:54 am on Mar 18, 2004 (gmt 0)

Wasn't aware you could use htaccess on a windows server?



 10:30 am on Mar 18, 2004 (gmt 0)

That's the golden Qeuestion Matt

My hosts are clueless about 301's and .htaccess
Have been searching for 5 weeks in WebmasterWorld and no answer on how to do a perm redirect on a windows server.

Still seeking and searching - Calum


 1:34 pm on Mar 18, 2004 (gmt 0)

Ok, this is how you do it. First off, htaccess is a *nix tool, you will not find one on a windows server. In order to do a 301, you will need to put this code on the top of every page you wish to be redirected:

<%@ Language=VBScript %>
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.example.com/yournewpage.asp"

The page this code runs on must be an .asp page.

Hope this helps.



 1:57 pm on Mar 18, 2004 (gmt 0)

The veil lifts and all becomes clear! Thanks Matt.

Your answer raises another question.
The objective is to consolidate the backlinks from one site (.com) into another (.co.uk). Both domains DNS entries point to the same IP address. However G sees them as separate domains, and therefore dilutes the backlinks.

In your expert opinion, is the 301 the best vehicle to achieve this?

Thx again, Calum

Global Options:
 top home search open messages active posts  

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved