Posts Tagged ‘mod rewrite’

Controlling www or no www in .htaccess

When you go to punch in a URL in your browsers address bar, you may add the www. or be lazy and just put in thedomain.com, sometimes you can use both and sometimes one of the two redirects to the other version of the address. For example if you type in james-blogs.com in your URL address bar the www. suddenly is added on, why? This is because for SEO purposes it is important that you have one constant varitation while redirecting the both to chosen variation in my case I make the www. appear as I think it looks better with blog and domains with a dash in them. Read more to find out why this is important

(more…)