PLAIN TEXT CODE: #Activate the rewrite engine if it isn't so already RewriteEngine on #intercept all HTTP requests to the site that do not have a 'www.' at the beginning of the Domain name #and then force a redirect to the same page address only this time, including the 'www.' RewriteCond %{HTTP_HOST} !^www\..* [NC] RewriteRule [...]
Category Archives: apache
htpasswd
htpasswd is a command line tool for creating and updating user authentication files. These files are primarily used by apache to authenticate HTTP users. Creating a password file PLAIN TEXT CODE: htpasswd -c /path/to/.htpasswd username Adding a user & password PLAIN TEXT CODE: htpasswd -b /path/to/.htpasswd username password Tweet
