Skip to content

Instantly share code, notes, and snippets.

@cikal
Created April 27, 2017 10:13
Show Gist options
  • Save cikal/7eb9b5640dd588341d6fc5cf6221ee30 to your computer and use it in GitHub Desktop.
Save cikal/7eb9b5640dd588341d6fc5cf6221ee30 to your computer and use it in GitHub Desktop.
Rewrite (example.com) to (www.example.com)
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.example.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
@cikal
Copy link
Author

cikal commented Apr 27, 2017

Tinggal sesuaikan dengan nama domain anda

Ex: (example.com) to (situsku.com)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment