Categories
Tags
Tag Archives: Apache
.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
Setting Up Virtual Hosts on Mac OSX
Working locally is key to faster development, and setting up PHP and MySQL to run on my local machine was the first step in establishing a solid development environment. A next, and often overlooked, step is to configure apache with virtual hosts. Virtual hosts alow you to create custom domains from which to serve your […]
.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 […]