301 Page Redirects using PHP and .htaccess

Monday, June 4th, 2007

During the life of a website, its quite common for pages to move around or to ‘re-structure’ your site’s files and folders. However, you can come across issues when people linking to your page go to their ‘stale’ bookmark of your site, and find that page is missing – in fact, they’ll get a ‘404 Page Not Found‘. The same will go for search engines like google and yahoo, and will adversely affect your rankings within their results.

(more…)

Block An Ip / host via .htaccess

Monday, May 21st, 2007

You can deny acccess to a vhost just by adding the following lines in a .htaccess file:

(more…)

Lock a folder with .htaccess

Saturday, April 28th, 2007

To do this you have to create a username/password file, and a .htaccess

(more…)