Forum Moderators: open
I have a website on Windows Server 2003 and IIS 6.0.
I have a website that is in the format [#*$!#*$!x.co.uk...]
which I want to keep. But I would like to set up a format not using the www such as [#*$!#*$!.co.uk...] which automatically forwards to [#*$!#*$!x.co.uk...]
Is it possible to do this using Windows Server 2003 and IIS 6.0?
Replies would be much appreciated
Steve
Is it possible to do this using Windows Server 2003 and IIS 6.0?
You need to add the appropriate A record in your DNS.
If you are using BIND then you want entries like this to your zone file:
example.com IN A 10.11.12.13
www.example.com IN A 10.11.12.13
(where 10.11.12.13 is your server's IP address)
While I don't know how to do it in IIS, it would seem that the best solution should be to create a 301 redirect from the non-www version to the www version.
This method should avoid any duplicate content issues.
While I don't know how to do it in IIS, it would seem that the best solution should be to create a 301 redirect from the non-www version to the www version.
Yes that's correct, but at the moment he hasn't got a non-www address, so he has to get that set up first.
Once that's done he can set up the 301.
Your answers have helped me to move on. We have managed to do the A record internally, but we don't know how to do it externally. We know where to go but we don't know Linux. We need a step by step detailed instruction on how to set it in Linux.
Can anybody help us, if so, much appreciated.
Steve
Then go into properties for the site and select Home Directory properties, and change the radio button to make it a redirection to a URL
in the URL field put the http://www.example.com address and then check the make this a permanent redirect checkbox. This will make it a proper 301 redirect.
I fully understand how to do the the 301 redirect now. However our Server Administrator has left the company, hence our questions, but in answer to Ian's question below is the reply I received from our Support dept.
------------------------------------------------
We are using Redhat Linux 7.3
We use a "external" DNS server independent from our "internal" ones, to advertise our DNS records to the outside world. On the external DNS we current A records for domains (in the external.db file. ) e.g.
--DOMAIN:somewhere.#*$!.xx--
A:www:<live IP address>
--END--
This once the db has been rebuilt it will create new zones, so the Live address will resolve to www.somewhere.#*$!.xx. But what we want to do is resolve somewhere.#*$!.xx.
would the host A record be something like...?
--DOMAIN:somewhere.#*$!.xx--
A::<live IP address>
------------------------------------------------------
Hope this helps in understanding our plight!
Thanks
Steve
I am just letting everybody know that I have now resolved this and thanking everybody for their help.
Just to clear a few things up in case this forum may be of help to others. I was only using one IP address and did not have another virtual directory, website or non-www server.
my colleague had managed to add the record for [*****.co.uk...] internally only, or so he thought but MrMister checked it and it was okay externally,(i.e. outside of our firewall) which then enabled me to download the lite (which is free) version of ISAPI_Rewrite and once I had pasted the relevant code into the httpd.ini file after removing the read only restriction everything worked!
Regards
Steve
[edited by: Stephen_Tiller at 10:12 am (utc) on Oct. 3, 2006]