U.S. CitiesCity-Data Forum Index
Go Back   City-Data Forum > General Forums > Science and Technology > Internet
 [Register]
Please register to participate in our discussions with 2 million other members - it's free and quick! Some forums can only be seen by registered members. After you create your account, you'll be able to customize options and access all our 15,000 new posts/day with fewer ads.
View detailed profile (Advanced) or search
site with Google Custom Search

Search Forums  (Advanced)
Reply Start New Thread
 
Old 01-20-2009, 10:11 PM
 
2,359 posts, read 8,238,150 times
Reputation: 1107

Advertisements

My website has two main Domains:

http://www.123syracuse.com/
http://123syracuse.com/

I entered my site into Google Adsense and it only recognizes the domain with the WWW before the 123syracuse.com. That means whenever someone goes to my site under the 123syracuse.com... I will not get a cent if someone clicks on the google ads.

If someone enters my site with the WWW into a Google search ("I'm Feeling Lucky" search), it automatically redirects you to the site without the WWW.

My question is this. How do I get Google to use the http://www.123syracuse.com/ Domain when people search Google?

Do you think it will happen on its own? Or should I contact Google?

Yahoo uses the correct domain that I want everyone to use...Syracuse Information Guide

Last edited by bellafinzi; 01-22-2009 at 05:58 PM..
Reply With Quote Quick reply to this message

 
Old 01-21-2009, 08:32 AM
 
28,607 posts, read 40,588,688 times
Reputation: 37262
The entire thing sounds backwards to me. Everyone expects to enter www. before a url, so most are going to.

I would have set it up the other way around, with the non-www page sending people to the www site and have that site be the trigger for payment. Actually, I would have never created the non-www page to begin with.
Reply With Quote Quick reply to this message
 
Old 01-21-2009, 08:39 AM
 
Location: Texas
5,070 posts, read 9,075,778 times
Reputation: 1632
I was reading a bit yesterday. Seems there is a bit of code that can be put on the page that redirects one to the other. I think they called it a 301. It was getting late, I had to leave the computer for awhile, so I didn't get any links.
Reply With Quote Quick reply to this message
 
Old 01-21-2009, 12:38 PM
 
Location: Tyler, TX
15,209 posts, read 18,488,428 times
Reputation: 8052
You will get paid regardless of the domain the ad appears on. Adsense units are keyed by the unit ID, not the domain.

On the Google/URL issue, what's happened (if I read your OP correctly) is that Google has indexed your site at the non-www address. If you want the site to only be accessible at the www URL, this is easily corrected (assuming your host allows for the following - most do), since you're hosted on a linux server.

You need to create a file named .htaccess (that's "dothtaccess", with nothing before the dot). That's just a regular text file that you can create with notepad or whatever. In that file, put this:
Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^123syracuse.com
RewriteRule (.*) http://www.123syracuse.com/$1 [R=301,L]
This file should be placed in the root directory of your site (the same directory that the files for your website are located in). There may already be a .htaccess file there - if so, just add these lines to the top of the file. If the RewriteEngine directive already exists in the existing file (if any), don't add it a second time, but make sure it's at the top of the file.

That'll take care of that. If anything needs clarification or you have any trouble implementing it, feel free to DM me.
Reply With Quote Quick reply to this message
 
Old 01-21-2009, 05:35 PM
 
2,359 posts, read 8,238,150 times
Reputation: 1107
Quote:
Originally Posted by swagger View Post
You will get paid regardless of the domain the ad appears on. Adsense units are keyed by the unit ID, not the domain.

On the Google/URL issue, what's happened (if I read your OP correctly) is that Google has indexed your site at the non-www address. If you want the site to only be accessible at the www URL, this is easily corrected (assuming your host allows for the following - most do), since you're hosted on a linux server.

You need to create a file named .htaccess (that's "dothtaccess", with nothing before the dot). That's just a regular text file that you can create with notepad or whatever. In that file, put this:

This file should be placed in the root directory of your site (the same directory that the files for your website are located in). There may already be a .htaccess file there - if so, just add these lines to the top of the file. If the RewriteEngine directive already exists in the existing file (if any), don't add it a second time, but make sure it's at the top of the file.

That'll take care of that. If anything needs clarification or you have any trouble implementing it, feel free to DM me.
Thank you. It works, but every time I update the website, the .htaccess file looses the changes made to it. I just have to remember to edit the .htaccess file after publishing changes to the site.

Last edited by bellafinzi; 01-21-2009 at 05:57 PM..
Reply With Quote Quick reply to this message
 
Old 01-21-2009, 10:04 PM
 
40,169 posts, read 41,782,366 times
Reputation: 16740
Quote:
Originally Posted by bellafinzi View Post
My question is this. How do I get Google to use the Syracuse Information Guide Domain when people search Google?
The 301 rewrite rule using htaccess posted above will eventually correct that however you can sign up for Google WebmasterTools account and tell them what you want them to use. Lots of other features and tools available as well.


Moderator cut: Good point. Thank you! The ad revenue may not be that great at this time but if you're site gets popular it can become a very lucrative arrangement with Google.

Last edited by bellafinzi; 01-22-2009 at 06:00 PM.. Reason: thanks!
Reply With Quote Quick reply to this message
 
Old 01-22-2009, 01:28 AM
 
Location: sowf jawja
1,940 posts, read 8,303,235 times
Reputation: 1042
Quote:
Originally Posted by Tek_Freek View Post
Everyone expects to enter www. before a url, so most are going to.
i never enter www before a url.
Reply With Quote Quick reply to this message
 
Old 01-22-2009, 10:28 PM
 
1,097 posts, read 3,618,905 times
Reputation: 646
Quote:
Originally Posted by southgeorgia View Post
i never enter www before a url.
I was going to say - I haven't typed out www since my first couple months on the internet when I didn't know what I was doing.
Reply With Quote Quick reply to this message
 
Old 01-24-2009, 07:55 PM
 
Location: Texas
5,070 posts, read 9,075,778 times
Reputation: 1632
When I first was online, I had to type "http://www" every time.
Reply With Quote Quick reply to this message
 
Old 01-25-2009, 04:47 AM
 
40,169 posts, read 41,782,366 times
Reputation: 16740
Quote:
Originally Posted by Brian.Pearson View Post
When I first was online, I had to type "http://www" every time.
You could still have that happen today. Technically an address with the www prepended is different address than just the domain name. If the server is not configured to recognize them you'll get a page not found.
Reply With Quote Quick reply to this message
Please register to post and access all features of our very popular forum. It is free and quick. Over $68,000 in prizes has already been given out to active posters on our forum. Additional giveaways are planned.

Detailed information about all U.S. cities, counties, and zip codes on our site: City-data.com.


Reply
Please update this thread with any new information or opinions. This open thread is still read by thousands of people, so we encourage all additional points of view.

Quick Reply
Message:

Over $104,000 in prizes was already given out to active posters on our forum and additional giveaways are planned!

Go Back   City-Data Forum > General Forums > Science and Technology > Internet
Similar Threads
Follow City-Data.com founder on our Forum or

All times are GMT -6. The time now is 07:26 AM.

© 2005-2019, Advameg, Inc. · Please obey Forum Rules · Terms of Use and Privacy Policy · Bug Bounty

City-Data.com - Archive 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35 - Top