Catatan Bapak Muda Berbahaya

Redirect Non-WWW to WWW using htaccess

I’m using this script very often, for some customers to redirect their website from to So I will put it here for easy access.

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

Just create or insert above script into your .htaccess. When a visitor visits he will be forwarded to

Piece of cake.

Next Post

Previous Post

1 Comment

  1. zasłony 21/02/2015

    If some one wishes to be updated with latest technologies then he must
    be visit this site and be up to date everyday.

Leave a Reply

© 2022

Theme by Anders Norén