Url ReWrite Question
Hi,Assume a dozen or so domains share the same IP.
Assume Apache VirtualHost directive looks like this.
(angle brackets left off intentionally)
VirtualHost 111.222.333.444
ServerName xyzhosting.com
ServerAlias www.xyzhosting.com
DocumentRoot ...
...
EndVirtualHost
Any of the dozen domains that come in will be caught by this virtualhost directive. This is what I desire.
Problem is, that in the web-browser, www.xyzhosting.com appears only if xyzhosting.com was entered.
What I mean (in case I'm messing this up is), if I enter www.joeblow.com I get www.joeblow.com in the browser address bar. Everything surfs OK.
The problem this causes, is that I have some posts that rely on the referring url to be www.xyzhosting.com.
Can anyone suggest some ReWrite code, or additional statements in the VirtualHost section to force www.xyzhosting.com to prevail for all hosts trapped by that IP?
Thanks in advance,
Bob