Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.htaccess domain Redirect?

Status
Not open for further replies.

Cake

Programmer
Oct 22, 2000
12
US
Hi,

Is it possible to redirect virtual domains to one domain? For example I have three addresses plus the IP address of the server that will direct the browser to my site.

They are in this form:
1) 2) 3)
I'd like to redirect the first two entry's to the third one using the .htaccess file.

I tried a relative path in my .htaccess file, but it freezes up the server so I dropped it:
Redirect /
Does anyone know what is wrong?

Thanks,
Cake
 
you'll need to customise this in your httpd.conf file:

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot /# ServerName dummy-host.example.com
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top