Web Hosting Talk







View Full Version : force specific domain


secured
11-21-2002, 12:10 PM
how do you force a domain? say someone enters

http://blah.com/

this will bring it to http://www.blah.com/ all other derivatives will go to this address.

thanks

rcs
11-21-2002, 12:43 PM
You just have to give the same IP
to blah.com and www.blah.com in
your DNS record.

secured
11-21-2002, 12:48 PM
no. i want to make sure the person enters www.blah.com. this is for ssl reasons. for example, i register a certificate that is for www.blah.com, if they enter https://blah.com/ it will come up with a warning.

or if i only want www.blah.com to be shown in the url header and not blah.com ever.

please help.

rcs
11-21-2002, 12:50 PM
If it's apache you'er using, you can configure mod_rewrite to do the redirection.

secured
11-21-2002, 12:53 PM
cool thats what i wanted to hear. thanks.