Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website Design Forum


You are currently viewing our Website Design Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
With www and without are different sites!
Old 09-08-2007, 01:26 PM With www and without are different sites!
Extreme Talker

Posts: 180
Trades: 1
Hi, im fuser and ive started a Global Warming site. Its called Global Warm Now ( www.globalwarmnow.com ).

The thing is that when you type it with "www" you see a dark grey box (the file is white) but when you type the ulr without the "www", the grey box appears in its real colour (white)..

Why does this happen? How can i fix it?

Thanks, fuser
__________________

Please login or register to view this content. Registration is FREE
<-- FREE STRONG DIRECTORY! - Submit your site for FREE

Please login or register to view this content. Registration is FREE
- Protect your identity, ALWAYS
fuser_00 is offline
Reply With Quote
View Public Profile Visit fuser_00's homepage!
 
 
Register now for full access!
Old 09-08-2007, 01:53 PM Re: With www and without are different sites!
Defies a Status

Posts: 3,420
Trades: 0
You have probably misconfigured the nameservers and the ww and non-www entries.

You should probably choose which one you prefer and then enter the correct code into the .htaccess file to redirect one to the other. The .htaccess file is located in the public_html directory of your web site. Obviously change "yourwebsite.com" to your domain name, but don't change anything else.

If you want the non-www address to redirect to the www address, enter this code:

Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourwebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourwebsite.com/$1 [R=301,L]
If you want the www address to redirect to the non-www address, enter this code:

Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^yourwebsite\.com
RewriteRule (.*) http://www.yourwebsite.com/$1 [R=301,L]
This is also beneficial for SEO as Google will no longer treat the sites as different.

Talkupation appreciated
Dan
CSS4Life is offline
Reply With Quote
View Public Profile
 
Old 09-09-2007, 09:01 AM Re: With www and without are different sites!
Experienced Talker

Posts: 47
Name: An Ions
Trades: 0
Quote:
You must spread some Talkupation around before giving it to whym again
Oh well, atleast now I now the secet of your 7 greenies
anions is offline
Reply With Quote
View Public Profile
 
Old 09-09-2007, 09:08 AM Re: With www and without are different sites!
Defies a Status

Posts: 3,420
Trades: 0
I know
CSS4Life is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to With www and without are different sites!
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.12033 seconds with 12 queries