SEO Tips & Tricks

Welcome to our Blog

I hope you find the information in here useful. I will continue to add useful tips, tricks and code that I think will be useful to share with you. All I ask in return is that you place a link back to this site. Thanks and enjoy!

Posted in On Page Techniques | Leave a comment

apache caching

# 1 YEAR

Header set Cache-Control "max-age=29030400, public"

# 1 WEEK

Header set Cache-Control "max-age=604800, public"

# 2 DAYS

Header set Cache-Control "max-age=172800, proxy-revalidate"

# 1 MIN

Header set Cache-Control "max-age=60, private, proxy-revalidate"

Posted in .htaccess | Leave a comment

setting the default page

#Serve Alternate Default Index Page
DirectoryIndex about.html

Posted in .htaccess | Leave a comment

remove ‘products’ from url string

RewriteRule ^products/(.+)$ http://www.yoursite.com/$1 [R=301,L]

Posted in .htaccess | Leave a comment

add trailing slash to url

#trailing slash enforcement
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !#
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ http://domain.com/$1/ [L,R=301]

Posted in .htaccess | Leave a comment

remove file extension from url string

RewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]

Posted in .htaccess | Leave a comment

Use your own 404 page

If you wish to create a 404 page based on your sites design instead of some horrible default page, then this is the code you are looking for.

ErrorDocument 404 /404.php

In fact, we would recommend that you do this for the following error pages:

ErrorDocument 401 /401.php
ErrorDocument 403 /403.php
ErrorDocument 404 /404.php
ErrorDocument 500 /500.php

Posted in .htaccess | Leave a comment

Only allow specific IP addresses to your site

Using your .htaccess file, it is possible to only allow specific IP addresses access your site. If you wish to do this, try this code: Continue reading

Posted in .htaccess | Leave a comment

Prevent Hotlinking

Hotlinking is when other websites display your files/images on their site. This results in this unknown site using your bandwidth to display content on their site and is effectively stealing. This is even worse when your hosting package has limited monthly bandwidth attached to it. Continue reading

Posted in .htaccess | Leave a comment

Discover Your Backlinks

There are many SEO tools out there however I only report to you the SEO tools that stand out from the rest. I have to say that when it comes to discovering your sites backlinks or your competitors backlinks, Continue reading

Posted in Free SEO Tools | Leave a comment

Does page speed matter?

As with any SEO tool, there are so many different free page speed tools that all display different results so which one should you take notice off? Well the answer is simple yet so many of us just don’t realise that it even exists! Continue reading

Posted in Page Speed | Leave a comment

http://www.seogem.co.uk/blog/index.php?