Redirect without WWW to a WWW domain for Vhost.

Adding redirect to preferred domain with WWW instead of without www.

Use the following .

<VirtualHost *:80>
  RewriteEngine on
  RewriteCond %{HTTP_HOST}                ^$
  RewriteRule ^/(.*)            $1 [L,R=301]
  <Proxy *>
    Order deny,allow
    Allow from all
  ProxyPass /
  ProxyPassReverse /

Then restart the httpd.

And re-test.

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *