301 redirect on Windows server

Associate
Joined
18 Oct 2002
Posts
2,055
Location
Southend-on-Sea
I can do 301 redirects on Apache no problem, but I've never had to do it on a Windows server before and I'm having some problems.

I have a domain hosted by Fasthosts and I need a 301 redirect to a domain hosted elsewhere. Both domains are on shared hosting. According to Fasthosts FAQ I should be able to do this in my Dashboard, but the option doesn't appear.

I've just spent over an hour on the phone to them. First they were trying to get me to change the DNS records which obviously wasn't going to work. Eventually I got through to someone and they said they would do it for me. I double checked it was a 301 redirect they were doing and they confirmed it was.

The redirect now works, but they've done it by replacing the home page with this:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<frameset>
<frame src="http://www.[I]domainremoved[/I].co.uk">
</frameset>
<BODY>
</BODY>
</HTML>

So basically the new site is running in a frame on the old domain. This breaks some of the stuff on the new site, and presumably there are SEO implications as well.

Their support seems next to useless, so can anyone advise if there is a another way I can do a 301? Is there any code I can add to pages to force a 301 redirect?

Cheers.
 
Thanks guys.

Not sure about the web.config and IIS stuff. I don't have access to IIS. And there doesn't appear to be a web.config file. All I have access to is the htdocs directory plus two others:

htdocs
logfiles
private

I'm assuming web.config sits above these?

gord - I came across that page earlier actually. I tried each of the PHP, ASP and ASP.net code but none of them worked.

Its so bloomin' annoying. This is a five minute job on Apache.

Going to phone them up again, although I have no faith in them sorting it so any other advice welcome.
 
All sorted guys. After another half hour on the phone to them, they informed me the reason I couldn't redirect from the Control Panel is because there was no contact phone number set in contact details for the domain. Once I added that, I could set a redirect from there.

Not sure wtf that is about, but it worked.
 
Back
Top Bottom