When using GET to specify a page fragment to load, will it be seen as a URL by a search engine?

When using GET to specify a page fragment to load, will it be seen as a URL by a search engine? - Google Search Console is a free application that allows you to identify, troubleshoot, and resolve any issues that Google may encounter as it crawls and attempts to index your website in search results. If you’re not the most technical person in the world, some of the errors you’re likely to encounter there may leave you scratching your head. We wanted to make it a bit easier, so we put together this handy set of tips about seo, google-search, search-engines, googlebot to guide you along the way. Read the discuss below, we share some tips to fix the issue about When using GET to specify a page fragment to load, will it be seen as a URL by a search engine?.Problem :


It's quite common, although not always recommended, to see something in the form of http://my.site.com/index.php?page=welcome"or simply http://my.site.com?page=welcome. The script (index.php in this case) will then get a "page" item equal to "welcome".



If there are several of these in links within a page, will Google and other search engines index each as a separate page, or will it ignore the "query" part of the url? Consider this simplified example:



<?php // Our index.php - Simple multi-view page ?>
<a href="index.php?page=welcome">Welcome Page</a>
<a href="index.php?page=about">About Page</a>
<a href="index.php?page=contact">Contact Page</a>
<?php
if(!isset($_GET["page"])) $_GET["page"]="welcome";
switch( $_GET["page"] )
case "about": echo '<p>This is the About page</p>'; break
case "about": echo '<p>This is the Contact page</p>'; break
default: echo '<p>This is the Welcome page</p>'; break


?>


My question here is when Google crawls this page, will it see each of the three pages we link to as separate links, or will it only index a single page (index.php) and ignore everything after the ??


Solution :

Querystrings are counted as part of a URL and variations will be considered unique URLs. So Google will see them as different pages. This also means, in your case, that you will have duplicate content issues and will need to use canonical URLs to specify which URL Google should consider the primary URL which is what will be shown in their search results.


If the issue about seo, google-search, search-engines, googlebot is resolved, there’s a good chance that your content will get indexed and you’ll start to show up in Google search results. This means a greater chance to drive organic search traffic to your site.

Comments

Popular posts from this blog

Years after news site changed name, Google is appending the old name to search titles and news stories

Is it possible to outrank Google for a search term on their own search engine?

Load Wikipedia sourced biographies via Ajax or render it with the rest of the page as part of the initial request?