Welcome to WebmasterWorld Guest from 54.162.213.67

Forum Moderators: Robert Charlton & aakk9999 & andy langton & goodroi

Message Too Old, No Replies

Basic sitemap question: Do I need to list each url w/ variable strings?

     
6:25 pm on Jul 9, 2008 (gmt 0)

New User

10+ Year Member

joined:Feb 26, 2004
posts:27
votes: 0


I am setting up a new sitemap and I haven't found an answer for this yet; If I have a url that have multiple variables but point to the same page (and the same content), do I need to make a listing in the sitemap for each one?

Example:

my.site.com/page.php?id=1
my.site.com/page.php?id=1&state=2

Not all of the variables are used in the current site, but they're linked out there from other sites so I don't know if I can really ignore them or not.

Thanks for any advice you can give :)

7:04 pm on July 9, 2008 (gmt 0)

Full Member

10+ Year Member

joined:Apr 11, 2006
posts:203
votes: 1


Don't give the search engines multiple URLs for the same page. Look up "duplicate content" and you'll see why...

Pick one URL for each page, put that in your sitemap and then modify how Apache handles things (using mod_rewrite) so if the user agent is a known search engine spider the other URLs get permanently redirected to the one authoritative URL you've chosen for the page. Regular users can use whatever URLs they want of course...