11
PART II - .HTACCESS - ADVANCED SEO TIPS FOR YOUR EXPONENT CMS WEBSITE By Chris J. Everett, Principal & Founder Captivate Search Marketing

Part 2 of Advanced SEO tips for Exponent CMS

Embed Size (px)

DESCRIPTION

Learn how you can utilize your .htaccess file to practice better SEO.

Citation preview

Page 1: Part 2 of Advanced SEO tips for Exponent CMS

PART II - .HTACCESS - ADVANCED SEO TIPS

FOR YOUR

EXPONENT CMS WEBSITE

By Chris J. Everett, Principal & Founder Captivate Search Marketing

Page 2: Part 2 of Advanced SEO tips for Exponent CMS

In Part II of my Advanced SEO Tips for Exponent CMS websites, I'll discuss how you can utilize your .htaccess file to practice better SEO.

Page 3: Part 2 of Advanced SEO tips for Exponent CMS

.HTACCESS

Your .htaccess file, which also ships in your Exponent CMS install, is used to override the Apache or PHP configuration files on your web server.

Page 4: Part 2 of Advanced SEO tips for Exponent CMS

The .htaccess file can be pulled down from your Exponent site's public_html directory much like the robots.txt, which I discussed in Part I of this advanced series file can through FTP or cPanel/WHM.

The one catch here is if you're trying to pull it down from cPanel/WHM, you must check the box that allows you to see hidden files (dotfiles) in your directories.

Page 5: Part 2 of Advanced SEO tips for Exponent CMS

For SEOs who are optimizing Exponent CMS sites, there are two primary modifications that they can make to the file in order to make their Exponent CMS sites more SEO friendly.

Page 6: Part 2 of Advanced SEO tips for Exponent CMS

Forcing a Preferred Domain URL

The first .htaccess modification you can make to optimize your website for SEO is to force a www. or a non-www. domain URL structure. This prohibits the possibility of two identical pages being indexed by the search engines with a www. and a non-www. version of the same website (the dreaded duplicate content issue!)

Page 7: Part 2 of Advanced SEO tips for Exponent CMS

In the latest releases of Exponent CMS that support canonical URLs, this isn't such a big deal (so long as you're defining the canonical URL), but in previous versions of Exponent CMS before 2.2.0, you'll want to make sure you put this modification in place.

Page 8: Part 2 of Advanced SEO tips for Exponent CMS

All you need to do is pull down your .htaccess file, uncomment out the example rule you want to follow, fill in the proper domain name, save, and re-push your file to the live server:

Page 9: Part 2 of Advanced SEO tips for Exponent CMS

301 Redirects

During a website redesign project, one of the most important items to cross off the go-live check list (for the SEO minded at least) is to ensure you have any 301 redirects in place for URLs that have been indexed by the search engines.

Page 10: Part 2 of Advanced SEO tips for Exponent CMS

Often times when a website is moved from one CMS platform to another, or undergoes an SEO overhaul, the URLs of each web page are updated.

When this happens, you will want to ensure that every URL that's been indexed by the search engines are permanently (301) redirected to their new URLs so the website does not lose any of their current organic rankings, nor deter potential customers who have found the website via organic search and landed on a “Page Not Found” (404 error) because the URL they landed on wasn't properly redirected.

Page 11: Part 2 of Advanced SEO tips for Exponent CMS

Plotting out 301 Redirects is relatively simple in the .htaccess file. All you need to do is pull it down from your public_html directory and at the bottom of your .htaccess file start adding your 301 Redirect rules, which would look as such:

These two .htaccess modifications are critical for websites undergoing SEO programs, particularly when that site is going through a redesign.