Improve SEO with These ExpressionEngine Tips
There are many ways to provide SEO with ExpressionEngine, here are a couple of easy ones (okay, the second one is outside of EE, but you’ll love it):
First of all, Use { site_url } instead of { homepage }. Using the { homepage } tag will make your links go to http://www.yoursite.com/index.php, whereas the { site_url } tag goes to http://www.yoursite.com. A subtle difference, and one that at least Google can figure out, but other search engines see those as two different pages, and give them two different rankings. Odds are, other sites will link to you as http://www.yoursite.com, so why not make your website links in the nav bar do the same?
Secondly, What is the difference between http://joviawebstudio.com and http://www.joviawebstudio.com ? Not much in the eyes of your browser, but in the eyes of a search engine, they are two different places. Write the following code in your .httaccess file in order to combine those two pages into one through a rewrite rule:
RewriteEngine On
RewriteBase /
# remove the www
RewriteCond %{HTTP_HOST} ^www.joviawebstudio.com$ [NC]
RewriteRule ^(.*)$ http://joviawebstudio.com/$1 [R=301,L]
If you want to add the “www” back in when people forget it, just reverse the code:
RewriteEngine On
RewriteBase /
# add the www
RewriteCond %{HTTP_HOST} ^joviawebstudio.com$ [NC]
RewriteRule ^(.*)$ http://www.joviawebstudio.com/$1 [R=301,L]
Don’t put both of these pieces of code in your .htaccess file or you’ll break the Internet and somewhere a star will die. Oh, and you can actually accomplish the first one automatically by installing Levi Graham’s excellent LG .htaccess Generator add-on for ExpressionEngine, which has a whole slew of other enhancements, including removing the index.php segment automatically. However, I would suggest that you learn a little about .htaccess rules if you are going to implement this addon, so you can easily tweak some settings that come with it by default in case your particular configuration requires it.




Comments (3)
LED Lights
Sep. 30, 2010
Great post, most people don't realise that Google can see these as different pages and so links to different versions of the home page will all count individually when it comes to ranking websites in the search engines.
Web development company India
Feb. 22, 2011
I like this concept. I visited your blog for the first time and just been your fan. Keep posting as I am gonna come to read it everyday.
guaranteed top 10 ranking
Mar. 21, 2011
I am very much pleased with the contents you have mentioned.I wanted to thank you for this great article. I enjoyed every little bit part of it and I will be waiting for the new updates.
Join the Discussion