Categories
Tags
aastra apache asterisk centos cheatsheet chrome cisco comic dd dropbox email esxi fedora file sharing find gmail gnome google grep im feeling lucky linux migration networking olf openfiler openoffice replace rpl scm search security sed sp3 spyware ssh storage subversion tips tomcat twitter ubuntu vmware voip windowsArchives
Monthly Archives: March 2009
Force the use of ‘www’ in your URL.
This is a pretty simple use of mod_rewrite to force the use www in your urls.
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule .? http://www.example.com%{REQUEST_URI} [R=301,L]\
The first line is only needed if mod_rewrite isn’t enabled on your server (though the module does need to be enabled). Replace example.com with your actual domain name of course.
Creating empty files in Linux