worldwideweb

This is the most common people faces when they buy a domain and launch their website. They get shocked seeing that their website do not have a “www.” before it’s URL.

When you type your address in address bar like : -

http://www.adityaseo.com

But anyhow, It redirected to

http://adityaseo.com

When look into verious search engines your website URL turn up without “www.”. You will be surprised to know that even google takes www.adityavyas.com and adityavyas.com as two different websites. Although, they point towards the same website . The technical name of this problem is known as Canonical Problem.

You don’t have to worry about that because I am here to help everyone to solve this problem. Specially, if you use wordpress and are facing this problem. Its damn simple to solve all, do as follows :-

Now, If your website showing www. then you dont have to use anysort of CMS or stuffs. You need to manually edit your .htaccess file which can be found at public_html folder of your webspace.

Just change the .htaccess file to follow format -

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
</IfModule>

Save the .htaccess file and watch out for your website. The problem will be solved.

Tip: - Sometime your might not be able to find .htaccess file using your cpanel, as it may be in hidden mode. During such matter just use a FTP client to access your file manager. You will be able to see the .htaccess file from the FTP client and edit it.

I hope all of you will be able to fix your problem.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • IndianPad
  • Netvibes
  • Propeller
  • Reddit
  • RSS
  • SphereIt
  • StumbleUpon
  • Twitter
  • Yahoo! Bookmarks
  • email
  • Technorati

Related posts:

  1. How to Optimize Permalinks of Your Wordpress Blog
  2. How to add a favicon on Blogger
  3. How to get your website indexed in google in 12hours
  4. How To Get Traffic From Wikipedia To Your Blog