• Welcome to Sitemap Generator Forum.
 

Only one page in sitmap

Started by DarrenAsh, July 15, 2009, 04:42:37 PM

Previous topic - Next topic

DarrenAsh

Trying to generate sitemap for [ External links are visible to forum administrators only ]. This has worked before but now only shows the home page. What am I doing wrong?

XML-Sitemaps Support

Hello,

your links are created with javascript, you should change them (or duplicate) to normal html links looking like <a href="...">

DarrenAsh

I dont know what that means :(, do you mean the lines

   <div id="BeltingeButton" onclick="location.href=('../ccount/click.php?id=1')"></div>
   <div id="SwalecliffeButton" onclick="location.href=('../ccount/click.php?id=2')"></div>

Is it because of problems with the main index page that it wont go any further?

XML-Sitemaps Support

Yes, I meant those links. Alternatively, you can specify [ External links are visible to logged in users only ] as starting URL when creating sitemap.

DarrenAsh

OK, I was linking that way as I was using a script to count the number of times a link was clicked.... I have now changed it to how you suggested but it still only picks up 1 page?


DarrenAsh

Yes, that works but as the site is currently split into 2 sections that method only maps the beltinge section. It does not include ANY pages from the swalecliffe section of the website?

XML-Sitemaps Support

I see that your homepage still has this:
   <div id="BeltingeButton" onclick="location.href=('Beltinge/index.shtml')"></div>
   <div id="SwalecliffeButton" onclick="location.href=('Swalecliffe/index.shtml')"></div>

You should duplicate links with <a href="">, for instance:

   <div id="BeltingeButton" onclick="location.href=('Beltinge/index.shtml')"><a href="Beltinge/index.shtml"></a></div>
   <div id="SwalecliffeButton" onclick="location.href=('Swalecliffe/index.shtml')"><a href="Swalecliffe/index.shtml"></a></div>

DarrenAsh

That got it!!!

Thanks very much and sorry for me not understanding sooner! :)


Zorreaux

I'm also getting only the home page shown in the sitemap results. It was crawled fine last week, but it's an osCommerce store and I keep adding contributions and probably changed something.

kiddeluxe.com

Can someone tell me what I'm doing wrong?

XML-Sitemaps Support

Hello,

make sure that you specify [ External links are visible to logged in users only ] as Starting URL (and not [ External links are visible to logged in users only ], since your links are pointing to non-www domain)

Zorreaux

Thanks. That seems to be working.