Every website should have this implemented. It forces your site to always show the triple w’s before your domain.
This prevents search engines from indexing your site twice and showing duplicate content, which could have a negative impact in your page ranking.
Options +FollowSymLinks
RewriteEngine onRewriteCond %{HTTP_HOST} ^domain.com [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
Add the above code to your .htaccess [...]
Category Archive for '.htaccess'
cPanel AWStats Mod_Rewrite
Posted in .htaccess on Feb 22nd, 2008
Here is a quick way to access your AWStats (a statistics software that comes with cPanel control panel with your hosting account).
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?(.*) [nc]
RewriteRule ^/?stats(/?)$ http://%{HTTP_HOST}:2082/awstats.pl?config=%2
Allows you to view your stats without going to cpanel. To see your stats after adding the above code to your .htaccess file, go to:
yourdomain.com/stats
You will still need the [...]

