surabaya web designer
cheap web promotion indonesia
design graphics and online shopping cart
     category      articles    
 

Adsense

Adwords

Article

Blog

CMS

CSS Style

Datacenter

Design Graphics

Flash Animation

Internet Radio

Messenger

Programming

Provider

Search Engine

Security

Security Web

SEF

SEO

Software

Software Web

Redirecting YourSite.com to www.YourSite.com

If search engines find both www and non-www links from other sites to your site, they may treat http://YourSite.com and http://www.YourSite.com as two different websites with the same content. This means that your site can be penalized for duplicate content.

Many experts recommend to set up a 301 redirect (permanent redirect) from YourSite.com to www.YourSite.com...

RewriteEngine On
RewriteCond %{HTTP_HOST} ^YourSite\.com [nc]
RewriteRule (.*) http://www.YourSite.com/$1 [R=301,L]


Replace "YourSite.com" with your real domain name.

OTHER ARTICLES

Confirm box with 2 location

AcceptMutex directive for Apache

AuthUserFile directive

AuthDigestRealmSeed directive for Apache

AuthName directive for Apache

Redirect with htaccess

AuthType directive for Apache

AllowOverride directive for Apache

PHP and MySQL

AddDefaultCharset directive for Apache