On 14 Sep, 2012
By
IT Support Newcastle With
Comments Off on Rack rewrite remove urls trailing slash
If you’re after a solution to remove trailing slashes in URLs using Rack rewrite, read on…. Rack rewrite remove URLs trailing slash so Google and other Search Engine don’t consider www.domain.com/page and www.domain.com/page/ as being 2 different pages with duplicate…
On 14 Sep, 2012
By
IT Support Newcastle With
Comments Off on 301 redirect all non-www to www using rack rewrite
It took me quite a while to find a way to 301 redirect all my non-www urls to www urls. So I decided to create another quick reminder in case I need this code again in the future… But firstly,…
The best SEO tip we’ve ever been given was to install a plugin called Yoast SEO plugin for websites running on wordpress. We’re not the best at SEO here in the office as we focus mainly on IT Support. But…
On 5 Sep, 2012
By
IT Support With
Comments Off on 301 Redirect non-www to www
Simply copy and paste the code below in an existing .htaccess file at the root of your domain RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] Then replace “example.com” on both lines with your domain name 301 Redirect non-www…