Some pages on my website appear differently depending on where the user has been, using php sessions.
for example with breadcrumbs:
standard crumb setup:
All Books -> fiction -> Lord Of the
Flies
if the visitor has just been on the ‘William Golding Page’, a session will have been created to say, this visitor is broswing by author, so i would check
if( $_SESSION['browsing by] == 'author' ):
and the breadcrumbs (for the exact same page as before) would now be:
Authors -> William Golding -> Lord Of the
Flies
to summarise:
So 1 page exists for each book, but depending where the user has come from, the page will show different breadcrumbs.
the questions:
- Can search engines create my ‘browsing by’ SESSION?
- Would they index the same page multiple times (for each
variation)?
Not really – the search engine is likely to see the the different bread-crumbs, but it will only index one version of the page.
The way search engines crawl is by clicking on every available link for urls that haven’t been crawled, and seeing the content of that url. It may land on the page again, and notice the different content, but it will figure that this is just a change to the page, and not path-specific.
The best way to achieve what you’d like is to try to and use the URL – that way, the crawler will consider the page an entirely different page and will crawl it again with the different content.
Eg.
vs.
The way you can do this is using mod_rewrite, and changing the url from:
http://www.mysite.com/?authors=WilliamGolding&book=LordOfTheFlies
and rewriting it to:
http://www.mysite.com/authors/WilliamGolding/LordOfTheFlies