Possible Duplicate:
Does Google ignores whatever is after the hash fragment (#) while crawling our website?
I have a question regarding links to a different section of the same page vs linking to a new page. For example:
domain.com/about.php
domain.com/history.php
domain.com/team.php
vs.
domain.com/about.php
domain.com/about.php#history
domain.com/about.php#team
I am wondering if Google recognizes the 2nd set of links and indexes those pages separately? Or if just the about.php page is indexed? Ideally I will remove the .php extension in nginx config.
thanks.
All search engines copies all the texts of your page. If you program server side on PHP, JSP, or HTML, the texts are all being taken by the search engine. If you are going to put an anchor link and it scrolls down to the section you want, it still works. It is being recorded as one page, in this case
about.php.But, if you start using javascript, and the text that you have is part of javascript, and not the server side scripts; then, search engines may not be able to read it because it only reads the text that are ready on load. For example:
So, if you are going to program your page, it is recommended to display the text first using server side scripting. If you ever want to hide the texts, you may use page effects after the server loads the texts, and it still will be read by the Search Engines.