Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
 
Moderator(s): Prowler, jcokos
Member Message

kasperseo
Joined: Jan 11, 2005
# Posts: 23

View the profile for kasperseo Send kasperseo a private message

Posted: 01/27/2005 06:24 am
Edit Message Delete Message Reply to this message

Hi,

a quick question, it's not really about php but I couldn't find a more suitable forum... so I hope somebody can help me out here. I have the following links on the homepage of my client (see profile):

<a href="/NL/home/index.html" onclick="javascript:cook('/NL/home/index.html');return false;" class="lng">> Nederlands</a>

Normally Google and others should be able to follow A HREF links with javascript in them as long as the destination URL is known, yet none of these pages are indexed. Several other pages that don't have js-cookies in links pointing to them, are indexed fine. Could it be that the specific nature of the javascript (placing a cookie in order to recognize language choice) prevents crawlers to follow these links?

Thanks in advance (and sorry if I'm off-topic/off-forum here)!



Sinoed
Moderator
Joined: Dec 11, 2000
# Posts: 5266

View the profile for Sinoed Send Sinoed a private message

Posted: 01/27/2005 09:32 am
Edit Message Delete Message Reply to this message

I would have suspected the Javascript but I wondered if there was something else wrong with the page. I ran it through a spider test and you're missing the robots.txt for these pages, that might help although I'm not sure its related. I was actual able to spider the /nl/ version so its not coming up with something else like a 404 or anything that would cause it not to be indexed. I would try adding the robots.txt to see if that helps and then put the Javascript itself under question. There could be something either in the command itself or the way its written that's causing the crawlers to stumble. I'm not sure though. I would also double check to make sure you're not missing any elements like a closing tag or something simple like that. As an example, if the link above is an actual link it looks like you've got an extra ">" by Nederlands..



lizardz
Joined: Nov 12, 2004
# Posts: 1394

View the profile for lizardz Send lizardz a private message

Posted: 01/27/2005 10:30 am
Edit Message Delete Message Reply to this message

Are the pages duplicate content from other sites, I remember you asking this elsewhere but don't remember your answer. Personally, I'd pull the cookie url out of the code/ and replace it with 'NL', then construct the url in the javascript library file, like
url = '/' + country + '/home/index.html';

that would be cleaner, and there wouldn't be a second url in the link, which currently google is looking at and understanding I think sort of, not completely.

But I still suspect you simply have duplicate content.



kasperseo
Joined: Jan 11, 2005
# Posts: 23

View the profile for kasperseo Send kasperseo a private message

Posted: 01/28/2005 04:04 am
Edit Message Delete Message Reply to this message

Thanks for the help. I've suggested again to add a robots.txt.
The purpose is in fact to show "> Nederlands" on the page, but to avoid any confusion we advised to change the second ">" in the code into "&gt;".

To solve the "double URL in one href"-problem, I got the suggestion to replace the URL in the js-command with "this.href":

<a href="/NL/home/index.html" onclick="javascript:cook(this.href);return false;" class="lng">&gt; Nederlands</a>

Lizardz, it could be duplicated content that's causing the indexing problems here. Google though guaranteed us trough e-mail that none of these pages were penalized because of duplicated content.



lizardz
Joined: Nov 12, 2004
# Posts: 1394

View the profile for lizardz Send lizardz a private message

Posted: 01/28/2005 02:14 pm
Edit Message Delete Message Reply to this message

You got an answer from google specifically referring to your site? Congratulations.

Is that all the email said, or did it say: the pages are not penalized because of duplicate content.

Which could still mean that they are penalized, just not for duplicate content.

How old are the pages, how old is the domain?



kasperseo
Joined: Jan 11, 2005
# Posts: 23

View the profile for kasperseo Send kasperseo a private message

Posted: 02/03/2005 03:23 am
Edit Message Delete Message Reply to this message

This was the mail:

Thank you for your note. Please be assured that (page x) and (page y) are not currently banned or penalized by Google. We searched for these sites and found that they are currently included in our search results. To see the results of our search, please visit the following links: (link to searches on the exact web domain).

There's a problem with one of the listings: it's listed as "http://website.com" and it should be "http://www.website.com". I've asked them to change it.

I have no idea by the way how old the pages are...

Anyway, I'm very pleased with Google's service: quick and detailed responses. So I'm sure we'll get there in the end.



Sinoed
Moderator
Joined: Dec 11, 2000
# Posts: 5266

View the profile for Sinoed Send Sinoed a private message

Posted: 02/03/2005 07:48 am
Edit Message Delete Message Reply to this message

I wonder if its the way your host is set up? Double check to make sure that enquires to 'http://website.com' resolve to the 'www.website.com' version too.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions