File: /home/drawpictures.co.uk/public_html/.htaccess
# invoke rewrite engine
RewriteEngine On
RewriteBase /
# Redirect to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#Redirect 400,401,403,404,500 to main website
ErrorDocument 400 http://drawpictures.co.uk
ErrorDocument 401 http://drawpictures.co.uk
ErrorDocument 403 http://drawpictures.co.uk
ErrorDocument 404 http://drawpictures.co.uk
ErrorDocument 500 http://drawpictures.co.uk
# add trailing slash if missing
rewriteRule ^(([a-z0-9\-]+/)*[a-z0-9\-]+)$ $1/ [NC,R=301,L]
RewriteRule ^wp-admin/ - [L]
RewriteRule ^([^/]+)/$ $1.html
RewriteRule ^([^/]+)/([^/]+)/$ $1/$2.html
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3.html
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4.html
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5.html
RewriteRule ^index.html$ / [L,R=301]
redirectMatch 301 ^/blog/tag/free/?$ /
redirectMatch 301 ^/newsletter_form3.php/?$ newsletter_form3/
redirectMatch 301 ^/blog/tag/reciprocal-links/?$ /
redirectMatch 301 ^/blog/tag/seo-tips/?$ /
redirectMatch 301 ^/blog/the-reigning-concept-of-mobile-seo-and-why-you-should-get-it/?$ /
redirectMatch 301 ^/blog/tag/seo-company/page/2/?$ /
redirectMatch 301 ^/blog/looking-for-seo-specialists-12-key-questions-to-ask-your-seo-specialist/?$ /
redirectMatch 301 ^/blog/tag/affordable-seo/?$ /