2

Lets say we have index.php with the following links.

<a href="index.php?page=home">Home></a>
<a href="index.php?page=contact">Contact</a>

Followed by the following dynamic content...

<div id="content">
  <?php inlclude "./content/" . $_GET['page'] . ".php"; ?>
</div>

I am in the process of creating my own light weight CMS and i'm wondering if search engines will crawl through these links with the get variables and pull/index the content. I also plan on controlling my meta-content in a similar fashion.

Do Search Engines read/apply get variables?

Derek Adair
  • 21,846
  • 31
  • 97
  • 134
  • At least in Google, you can add [parameter handling](http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=147959) – CappY Feb 25 '11 at 01:23
  • Yes, they'll see them as different pages. Since the page is rendered on your server before it's sent to the crawler, the dynamic content isn't an issue. – drudge Feb 25 '11 at 01:23

3 Answers3

1

They surely will. Else they'd miss most of the dynamic content on the web not using nice urls ;)

Czechnology
  • 14,832
  • 10
  • 62
  • 88
  • On a sidenote, there's an interesting article on duplicate contents that can happen easily with GET vars: http://www.toprankblog.com/2010/01/search-engines-url-variables/ – Czechnology Feb 25 '11 at 01:26
1

Search engines will scan a webpage for hyperlinks and store any unique locations that they come across. index.php is a different location than index.php?q=home is a different location than index.php?q=about.

Unless of course you've told the search engines not to scan that page with a robots.txt file.

zzzzBov
  • 174,988
  • 54
  • 320
  • 367
0

Back in the early days of search engines, the answer was no. Nowadays search engines are smarter and are for the most part able to differentiate pages even with the same root pagename.

However, it will definitely be better to use a RESTful application design, and that will entail using mod_rewrite or some other technique to make your URLs more transparent. Given that you're in the planning stages of creating the CMS, I would definitely read up on how to implement REST in your program, avoiding the problem entirely.

eykanal
  • 26,437
  • 19
  • 82
  • 113