/ Published in: Apache

This snippet checks if mod_rewrite is enabled and redirects example.com/some_uri to www.example.com/some_uri
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^(.*)$ http://www.example.com$1 [R=permanent,L] </IfModule>
Comments
