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.

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I will never give away, trade or sell your email address. You can unsubscribe at any time.


Related Post

One Response

  1. imnajmi says:

    from that photo i can tell you are a big lover for coffee and you should cut your nails.. lol.. i am just kidding, thousand of word can be said, just make dozen of words


Anything to add?