XML Sitemaps Generator

Author Topic: Duplicate links  (Read 26860 times)

bruce_abel

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Duplicate links
« on: March 01, 2007, 11:19:46 AM »
Hi, I am new to the standalone XML sitemap generator, so sorry if this is a gumby question.

It seems to be basically working OK, but I am having an issue where it lists certain links twice.

For instance, my homepage...

[external links are visible to admins only]

If you click the 'sitemap' link at the bottom right of every page you will see there are 2 entries.  This seems to happen anywhere I have an index.php.  I have these index files inside each top level folder, which correspond  to each main navigation section - Benefits, Portfolio, Resources,Process, Hints & Tips, Contacts, Links.

What am I doing wrong here - and how can I fix it?

I notice that one links URL is;
[external links are visible to admins only]

and the other is;
[external links are visible to admins only]

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Duplicate links
« Reply #1 on: March 01, 2007, 11:35:47 PM »
Hello,

you can add this in "Exclude URLs" option:
index.php
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

bruce_abel

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Re: Duplicate links
« Reply #2 on: March 02, 2007, 08:40:59 AM »
[external links are visible to admins only]
Hello,

you can add this in "Exclude URLs" option:
index.php

I could, but as most of the site structure relies on links present in each index file, that results in only a few 'siewide links' appearing in the XML Sitemap.

This is no solution.

I also tried experimenting with listing an actual URL, but it looks like the Exclude URLs option only matches strings, not entire URLs.  In any case, this would have had the same effect.

It looks like the problem is the index.php and the folder are equivalent.

I then thought about the robots.txt file, but as far as I know - it only lets you remove folders or files.

I needed more control, and the only thing I have found that will allow this to work is a command in the HTML head section.

<meta name="robots" content="noindex">

This works, in that it does not create a link for the index file itself, however it does create them from links in the file.

If I had have used the following meta, not even the links inside the file would have worked...

<meta name="robots" content="noindex,nofollow">

Hope this helps someone else.

Any moderators listening, it would be nice to have this feature inside the sitemap generator, but I have no idea if sitemap standards support it anyway.


bruce_abel

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Re: Duplicate links
« Reply #3 on: March 03, 2007, 01:41:19 AM »
Drat - I just realised.  This does not really fix the issue satisfactorily either.  Not only does it remove the duplicate, it removes the index.php files as well.  >:(

Having 2 links - 1 for the index.php and another for the reference that does not have the filename looks pretty lame imho.  There should be a way to specify that folders don't also get listed.

Please can someone come up with a suggestion, or confirm this as a bug?

bruce_abel

  • Registered Customer
  • Approved member
  • *
  • Posts: 6
Re: Duplicate links
« Reply #4 on: March 03, 2007, 02:30:27 AM »
To be more precise, here is what shows up in the actual sitemaphtml.
(Note that it is the same location / file)

Code: [external links are visible to admins only]
<tr><td class="lpage"><a href="http://designforge.com.au/" title="Designforge: Homepage">Designforge: Homepage</a></td></tr>
<tr><td class="lpage"><a href="http://designforge.com.au/index.php" title="Designforge: Homepage">Designforge: Homepage</a></td></tr>

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10624
Re: Duplicate links
« Reply #5 on: March 03, 2007, 10:37:25 PM »
Hello,

you can replace all "index.php" links on your site to the folder-like links.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2