Stop Search Engines From Indexing A Page

There can be times where you have a page in Search Engines that you don't want indexed or are creating a new page and don't want this one page to be indexed. In this tutorial we are going to look at a...

Redirect A Folder To A Subdomain

I've recently had to migrate a website which needed to switch a URL from www.example.com/blog/ to be on a sub-domain to http://blog.example.com/. When you do a site migration like this you need to mak...

Import And Export A Database Using Command Line

The following code snippets will allow you to import and export a large database using SSH commands. To get SSH access to your hosts server you will need to contact your current web hosting company. I...

Use htaccess To Redirect Custom Error Pages

When your website server sends a HTTP error status code it will display some default pages which do not look good on your site and don't look professional. The best solution to use if your server retu...

Blacklist IP Addresses With htaccess

Here is a good snippet to add to your htaccess file to completely block spammers from your site. If you have a Wordpress site you could get a lot of spam comments, it can take up a lot of time of your...

Reduce Comment Spam With htaccess

Comment spam is a problem with many blogs, one of the biggest is spam bots crawling sites and automatically submitting comments to your site. The below code snippet will check the HTTP_REFERER on the...

Prevent Hotlink Images With htaccess

There is a way you can prevent people hotlinking the images on your website just by adding bits of code in your htaccess. Hotlinking Hotlinking is when people use images from another site on their ow...

Using htaccess To Force Trailing Slash

You can use htaccess to change the URL structure of your website. There are lots of things you can do with htaccess one of the most common things would be to make sure all the pages are prefixed with...

Set Expire Headers In htaccess

A way that Browsers try to help speed up rendering the page is by taking static data and cache it. These are things like images, CSS and JavaScript files. As Browsers are going to cache these bits of...

Force non-www With htaccess

In a earlier article I mentioned how to add the www. to your domain if users come through to your domain without it. Now I will explain how you can do the opposite and remove the www. from your domai...

Force www With htaccess

For SEO it is important to use a set standard of how you present your domain. The most popular approach is to use the sub-domain www. Many people don't know this but http://www.domain.com is the same...