-1

What is the right way to create large site with PHP template, that is creating each article from variables defined in MySql?If i create for example html page after click on specific product, will be Google able get this document to show product like this?

enter image description here

And if this is possible, what is best structure for this?

I noticed somebody is using :

example.php?id=33

and somebody is using sentence like this :

example/properties/property-name

Id like to use second option, so what is the best way to do this? So far im able to get data from MySql and get it as variable to php.

Im sorry, because this is probably a stupid question, but HTML that will be created is just virtual thing or its a physical file on server?

I know pretty well HTML, JS and little bit of PHP, but all my projects was small sites, that was hardcoded, so thanks for consideration.

Community
  • 1
  • 1
johny packet
  • 53
  • 1
  • 9
  • I dont think so, that question is not providing info about relationships between PHP generated content and Google SEO – johny packet Jul 13 '16 at 14:04
  • First you should have chosen SEO as tag for this question. 2nd your question is not clear. what is that you want.? do you want a sample code to find product by property-name. or you just want confirmation that its better way? – enRaiser Jul 13 '16 at 14:10
  • From SEO perspective obviously property-name in URL will add more weightage to it. – enRaiser Jul 13 '16 at 14:10
  • Ill be happy with sample code, but thats not a point.I just need to know, if Google crawlers can recognize html page with product, thats not exist,before some action(click) on the product happens and generate this HTML in PHP – johny packet Jul 13 '16 at 14:14
  • ok so please update your question. make it short and to the point. – enRaiser Jul 13 '16 at 14:18

1 Answers1

0

Google will not crawl, to unknown links. it can only crawl to all links which can be traveled from your home page. or links that other sites are pointing to your site.

The link could be either <a/> tag or even a dropdown somewhere in your page should be ok. but not autocomplete or search box.

enRaiser
  • 2,606
  • 2
  • 21
  • 39