Tag Archives: htaccess

.htacces Redirects

Most of the below culled from stupid .htaccess tricks Rewrite URL to always include the www and redirect multiple doamins to one Aways remove the www Redirect old files and folders to new

.htaccess Basic Authenticaton

To restrict access to everything in a directory and everything below it, set up an .htaccess file and a corresponding password file. Generating the .htpass file Method 1 The -c directive creates a file .htpass in the directory somepath/outside/of/root/ containing a username user1. Be careful as this will overwrite an existing file of the same […]