Boost Your SEO With .htaccess

For those of you utilizing an apache server and not taking advantage of your .htaccess file you are definitely missing out! This one file can make or break large news sites, expensive content marketing efforts, and even small business sites so today I'm going to break down the basics of how to use it. These simple tactics can ensure you avoid the angry wrath of panda, help your user experience, and overall search engine rankings.
*WARNING please back up your .htaccess file before trying to modify it, you'll thank me later!
301 Redirect With .htaccess
Ever move a page, change a url, or switch domains? Of course you have and this is why you need to know how to utilize a 301 redirect to prevent loss of authority, traffic, link juice and several other factors. While many of the popular content management systems out there have modules or plugins that will write your .htaccess file for redirects here is the quick, easy, and fool proof way to do an .htaccess 301 redirect. In addition to the redirects make sure to tell Google via webmaster tools that your site has moved.
Redirect Non www to www and Vice Versa with .htaccess (Fix Duplicate Content)
Whether your new to SEO or you've been doing it forever there is one thing you should know and it's that duplicate content should be avoided at all costs! When your site will resolve when you go to either www.yoursite.com or just yoursite.com this is viewed as duplicate content. You can prevent this with a couple of lines in your .htaccess file.
Remove index.php or index.html From Displaying With .htaccess (Fix Duplicate Content)
Whenever your site resolves to www.yourdomain.com and www.yourdomain.com/index.php this is viewed as duplicate content and can split your link juice if some people link to just your domain and others with the index.php at the end. See the fix below:
Create a 404 redirect with .htaccess
Why would you want to create a 404 page you say? Well simply put the internet is constantly evolving growing and changing, pages get moved links get taken down etc. You need a solution for when your content goes missing or just plain isn't working. This will both provide a better user experience as well as prevent duplicate content(using catch all to redirect to home page).
ErrorDocument 404 /404-page.html
This will redirect any broken links or moved pages to your custom made 404 page and give a response of 404 to search engines. It is best practice to place an html sitemap on this page so that users can navigate back to a page similiar to what they are looking for instead of bouncing.
These topics just scrape the surface of htaccess seo send us an e-mail, tweet us, or send a facebook message for more help with .htaccess!


