Posts Tagged ‘.htaccess’

SEO in an afternoon – 4 quick fixes you can make in about 30 minutes

seo-afternoonLearning SEO can seem like a daunting task. It doesn’t take long to realize there is a lot to learn, and it takes quite a bit of research to separate fact from fiction. Fortunately, you don’t have to become an expert to get results. You can build a solid foundation in about 30 minutes by focusing on these four factors: 1. Title tags Optimizing your title tags is probably the single most effective, yet simplest part of your SEO efforts because: It helps the search engines see each page as unique content It’s where the click-able “headline” people see when using a search engine comes from It helps to influence the anchor text when people link to your web pages It carries a lot of weight in the algorithm that search engines use to determine...

How to remove www from domain

remove-wwwMore than a few people have asked for an easy way to make sure their visitors always see http://yourdomain.com instead of http://www.yourdomain.com so we figured it’s about time for a post on how to automatically remove the www from your domain (or vice versa). First, edit (or create) your .htaccess file, using mod_rewrite to either remove the www from, or add it to your domain. To remove the www from your domain: RewriteEngine On RewriteCond %{HTTP_HOST} www.example\.com RewriteRule (.*) http://example.com/$1 [R=301,L] To add the www to your domain: RewriteEngine On RewriteCond %{HTTP_HOST} example\.com RewriteRule (.*) http://www.example.com/$1 [R=301,L] Next, simply upload your .htaccess file to the root directory of your web server and you should be all set. Be sure to give it a quick test and make sure everything works properly.