i have a website that is in essence one page that gets its content depending what is in the query string... Eg. ?page=home. Using apache rewrite rule i have the pages 'site.com/home' rewritte to 'site.com?page=home' which gets its content from text files.... My question is will google index: the text files, the pages with the query string, and the pages with the fake directories... I only wish for the last 1 to be true
You really missed the mark there, Donatello, that wasn't the OP's question.
To the OP, if you only wish for search engines to index the one like site.com/home then you must be sure that that is the only link available to that page on your site.
For instance, if you go out and litter blog posts, forums, and other places on the web with site.com/?page=home, then google will see that link, follow it and index the content. If you instead make sure that anybody linking to you uses site.com/home, then that's the only one google will see.
Google will never index the text files if there are no direct links to them. This will hopefully provide you a clue that google's search engine only has results that have links to them. If I put a site up online and turned it into an island, without any incoming or outgoing links then, from my understanding of it, google would never index it because it would never know about it.
Hope that answer is sufficient.
I've switched careers...
I'm NO LONGER a scientist,
but now a web developer...
awesome.
You really missed the mark there, Donatello, that wasn't the OP's question.
Hehe... Well, I usually frequent these forums before bedtime when my horsepower is winding down... I saw that ? In the query string and snapped at the bait!
Good answer, but still... Kill the question mark that betrays your URL as a generated page based upon a query!
No matter what you enter, you will never ever get a "Page Does Not Exis!"... But instead a copy of the homepage that rather than encourage a searcher to hit the back button, entices them with the homepage content as well as the main menu. Try it by adding any nonsense to the url ...
You can take this a bit further by making your 404 page handle queries usingQSA as I inappropriately answered you (Jumped the gun) in my first post.
Anything that exists in the Zazzle catalog gets generated without a visible query string. You can even type a space in the URL. Try it!
If you do that with your 404 page, users will never go away without seeng some content, and nobody ever gets a 404 - a glorified full page back-button!
Last edited by donatello; 06-12-2011 at 05:01 AM.
Reason: Broken URLs, spelling, iPad goofs...
Bookmarks