If you have a gravatar, it will appear next to any comments you post.
Member Login
If you have a gravatar, it will appear next to any comments you post.
Click on the slide!

Website Design

My website design/development portfolio

Here you will find all things web related . Primarily a website design / development portfolio, this section is where you will also find any online banner or logo designs (if / when they are created).

More...
Click on the slide!

Photography

Online Portfolio (Coming Soon)

Coming Soon...

More...
Click on the slide!

Tutorials

A series of step-by-step guides, predominantly using Photoshop.

A series of step-by-step guides, predominantly using Photoshop. Keep checking back as new tutorials are added on a regular basis. Alternatively, subscribe to the RSS feed for the latest articles.

More...
Click on the slide!

Print Design

Anything printed to paper, or any other surface - be it fabric, ceramic, etc. can be found in this section.

Anything printed to paper, or any other surface - be it fabric, ceramic, etc. can be found in this section. PDF files of some design work can be found in the downloads section of the site.

More...
Home Tutorials Joomla Tips Does Google see your website as two seperate sites?
Does Google see your website as two seperate sites?
( 0 - user rating )
Friday, 27 June 2008 18:30
address bar thumbnail

Or any other search engine for that matter. http://yourwebsite.com and http://www.yourwebsite.com may actually be treated as two different websites. Test them in your web browser (obviously substituting yourwebsite for your own site name). Do both show up? If they do then you may have a problem, but fortunately one that is easy to fix.


Add the following lines of code to your root directory .htaccess file, leaving out the RewriteEngine On part if it already exists.

RewriteEngine On

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

Therefore the code for this site is:

RewriteEngine On

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

This sets up up a 301 redirect (an instruction that the page has moved). Once the changes to .htaccess are saved, any requests for yourwebsite.com will automatically be forwarded to www.yourwebsite.com. Test it for yourself - www. should appear before yourwebsite.com in the browser's address bar. You can also confirm the redirect is working with the redirect checker at webconfs.com. If things are woking as they should you'll see something like this:

redirect checker

Trackback(0)
Comments (1)add
...
written by Steven , June 27, 2008
This guide is for Linux servers running Apache. www.webconfs.com also has information on 301 redirects for other platforms.
This content has been locked. You can no longer post any comment.

busy
 

Feed Me!

Subscribe to the
Tutorials RSS feed
RSS icon

Alternatively, subscribe to email updates by clicking here.

Find It Here!

Sponsored Links

Latest Photoshop Tutorials

Latest Photoshop Tutorials

Latest Joomla Tips

Latest Joomla Tips