How a simple .htaccess file can improve your SEO stategy

Did you know that search engines actually see your website as two separate sites? Yep… talk about duplicate content :-)

See — you can actually get to any page on your site with either http://yourdomain.com/ or http://www.yourdomain.com. That’s two separate addresses and technically - search engines see that as two separate sites.

So there is potential here not just for duplicate content but also for page rank leaks… if you have inbound links to both addresses.

There is a really simple solution. You need to create a ‘mod_rewrite’ that redirects search engines, and users for that matter, from http:// to http://www. It’s easy to do, I’ll show you how.

Open up notepad and save the files as .htaccess (unless you already have that file in your root directory in which case add the following code to it).

Now paste the following code into it:

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^yourdomain\.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L]

You need to replace ‘yourdomain’ with your own.

Save the file and upload it.

That’s it. Now any time someone arrives at http://yourdomain.com they will be redirected to http://www.yourdomain.com. It does it for all of your pages not just the homepage.

Cool huh?

Here’s a hint too… before you create the file, make sure you don’t have it already. It’s a hidden file so you won’t see it in your ftp like you do other files. I use ws_FTP and with this program there is a little spot under ‘MkDir’ that you can type in. You type -a there and it shows the hidden files.

I’m not super techy so I can’t tell you much more then that… but hopefully you can figure it out ;-)

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • MisterWong
  • co.mments
  • Furl
  • Ma.gnolia
  • Netscape
  • Reddit
  • Technorati

Add comment February 9th, 2007

Some Free Directories to Submit to…

http://www.itzalist.com/

http://www.0pn.com/

http://www.123hitlinks.info/submit.php

http://www.123kidzarea.com/

http://www.bigall.com/

http://www.businessplexus.com/submit.php?c=399

http://www.1800miti.com/

http://www.businessseek.biz/page.php?page=link-submit-options

http://www.1americamall.com/free-business-listing.html

http://www.thomasnet.com/browsecategories

http://www.1stw.com/Submit.aspx?CategoryId=0

http://www.dmoz.org/

http://www.findhound.com/add/2796/76.php

http://www.hedir.com/login/login-signup.php

http://business.2gogo.co.uk/index.php

http://2locals.com/index.php

http://www.websitedebut.com/

http://www.daredirectory.info/submit.php

http://www.yourowncorner.com/sug_url.php?cat_id=50

http://www.niche-listings.com/

http://www.linkdiary.info/suggest-link.php?id=5

http://www.bitwide.com/submit.php

http://www.2space.net/

http://www.2-surf.net/

http://www.viesearch.com/submit.html

http://www.fairwebdirectory.com/submit-3-Business

http://www.gimpsy.com/

http://juicytail.com/index.php?mwa=parent_id:13&mwst=page:submit

http://www.pblake.com/submit.php

http://schwoitdirectory.com/submit.php

http://www.indianlinkbuilder.com/submit.php

http://www.jayde.com/

http://www.joeant.com/hill/myanthill.php

http://www.lifestyle.co.uk/advertisers/default.aspx

411Find.com

http://www.pharos-search.com/guidelines.php

http://www.businessseek.biz/link_submit.php

http://com.4-every-1.ws/

http://www.4-fun.biz/directory/newlink1.php?type=premium

http://www.4ppl.com/directory/

4yourneed.com

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • MisterWong
  • co.mments
  • Furl
  • Ma.gnolia
  • Netscape
  • Reddit
  • Technorati

1 comment January 26th, 2007

SEO Tip - don’t suck

It’s still thankfully true… the best way to continue to rank well in search engines is to have a great site with dynamic content. Content that changes, is original, and worth linking to.

One of my many New Year resolutions is to add fresh, decent content to my websites and blogs on a daily basis. Using the free article databases simply isn’t enough. We have to provide information to our visitors that they can’t find anywhere else, and present it in a way that engages them.

SEO is important, sure. Knowing your target keyword phrases and making sure your pages are optimized well and spider friendly… but if your content is lame or stale, it’s all over.

So, here’s to added website value in 2007!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • MisterWong
  • co.mments
  • Furl
  • Ma.gnolia
  • Netscape
  • Reddit
  • Technorati

1 comment January 26th, 2007

Next Posts Previous Posts


Categories

Worthy Resources

Feeds