Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Perm Redirect: 301 vs. htaccess on Windows server



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

10+ Year Member

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)

WebmasterWorld Senior Member 10+ Year Member

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



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

10+ Year Member

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)

WebmasterWorld Senior Member 10+ Year Member

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)

10+ Year Member

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


Featured Threads

Hot Threads This Week

Hot Threads This Month