Forum Moderators: open

Message Too Old, No Replies

mod rewrite on NT server

         

flyte

12:33 pm on Oct 20, 2006 (gmt 0)

10+ Year Member



I have a client on an NT server and he wants to have http://example.com resolve to http://www.example.com (including all of the internal pages, i.e., http://example.com/whatever.htm resolves to http://www.example.com/whatever.htm.)

I know on a Unix server I could accomplish this through mod_rewrite. Is there a way to accomplish this on an NT server?

Rich Brooks

[edited by: encyclo at 5:40 pm (utc) on Nov. 13, 2006]
[edit reason] no signatures please, see terms of service [/edit]

oxbaker

7:34 pm on Oct 20, 2006 (gmt 0)

10+ Year Member



if your able to get onto the control panel for whoever is handling the DNS you can just create another A record that is www.hisdomain.com and points to the same ip address the site is on.

the dns cp would already have something like :
A NAME: hisdomain.com RESOLVE TO: 111.111.11.1

just add
A NAME: www.hisdomain.com RESOLVE TO: 111.111.11.1

hth

RossWal

2:50 pm on Oct 22, 2006 (gmt 0)

10+ Year Member



Double pointing the DNS cann result in duplicate content issues. Anoither way would be - if you have a consistent header (include) in each page you could 301 to the www version from that code. Another trick is to do a custom 404 page and clear the response before it's sent to the browser.

IIS may have a setting to handle all this. I don't think so though.

mattur

3:00 pm on Oct 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you have full access to the server you can setup the re-direct in the IIS MSC. This thread [webmasterworld.com] contains all the relevant info.

RossWal

4:19 am on Oct 23, 2006 (gmt 0)

10+ Year Member



Thanks mattur!