faqts : Computers : Internet : Web Servers : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

35 of 42 people (83%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

If I have a domain name, say DOMAIN.COM, how do I go about redirecting SOMEWHERE.DOMAIN.COM to somewhere? i hav access to my .htacess, but thats all.

Aug 1st, 2004 09:20
Cinley Rodick, Thomas Bader, null, http://www.generalforums.com . http://www.generalforums.com/yellow/


You cannot do this only using .htaccess. You must have access to your 
sites httpd.conf and to the DNS zone files (to create 
SOMEWHERE.DOMAIN.COM).
If you have access to the httpd.conf, just set up a new VirtualHost 
called SOMEWHERE.DOMAIN.COM which looks something like this:
<VirtualHost SOMEWHERE.DOMAIN.COM>
ServerName SOMEWHERE.DOMAIN.COM
Redirect permanent / http://other.host/
</VirtualHost>
Maybe you can tell your ISP to do so?