301 Page Redirects using PHP and .htaccess

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 ...

Block An Ip / host via .htaccess

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

Lock a folder with .htaccess

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