I have two names for the same domain: collegeskin.com and
college-skin.com. I am using name based virtual hosting.
The server is not on the Internet yet, so I am configuring it on a
private IP network. What I want is a rule in httpd.conf that
redirects a request to www.college-skin.apostrophe to
www.collegeskin.apostrophe unconditionally. (the word apostrophe will
be replaced with com when the machine is moved).
Anyway, the second VirtualHost directive doesn't do the trick. Any
ideas?
<VirtualHost 10.7.7.11>
ServerName www.collegeskin.apostrophe
DocumentRoot /websites/collegeskin.com
ErrorLog /weblogs/collegeskin.com/error_log
TransferLog /weblogs/collegeskin.com/access.log
</virtualHost>
<VirtualHost 10.7.7.11>
ServerName www.college-skin.apostrophe
ServerAlias www.collegeskin.apostrophe
Rewri*gine On
RewriteRule www.collegeskin.apostrophe - [R]
</virtualHost>
--
David Steuber | Hi! My name is David Steuber, and I am
NRA Member | a hoploholic.
http://www.veryComputer.com/
The problem with AI is that it has a mind of its own
--- Devon Miller