2008/4/11, Shashidhar Rampally <[EMAIL PROTECTED]>:
> Hi guys,
>
> I am trying to permanently redirect http://xyz.com to
> http://www.xyz.com, which is hosted on Apache2 + Tomcat 5.5.9 with
> mod_jk. I am trying to use .htaccess file to do so. So far my efforts
> have been unsuccessful!
>
If I were you, I'd do a simple vhost for xyz.com:
<Virtualhost xyz.com:80>
ServerName xyz.com
DocumentRoot /whatever/except/your/webapproot
RedirectMatch Permanent /(.*) http://www.xyz.com/$1
</Virtualhost>
And then define the Virtualhost for www.xyz.com, pointing to the real
webapp root, you see what I mean.
I've been playing that trick before, and it worked. I think I'm
missing something though.
--
Francis Galiegue, [EMAIL PROTECTED]
"When it comes to performance, weight is everything" - Tiff Needell
---------------------------------------------------------------------
To start a new topic, e-mail: [email protected]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]