+ 2

Using include(); affects SEO?

Is bad for SEO if I : <?php include('header.php'); ?> <section></section> <?php include('footerphp'); ?> Does google index the include()'s ?

30th Nov 2017, 1:04 PM
Andres Gornatti
Andres Gornatti - avatar
4 Réponses
+ 14
No Google Can't...even no one can see php code ... only because it is a server side language...
30th Nov 2017, 1:07 PM
Nikky Amresh
Nikky Amresh - avatar
+ 1
Only if your PHP code is sent as-is then Google (or anyone or any web crawler / indexer … or caching HTTP proxy) can cache it. Any code handled server-side won't be exposed as-is to the client. Using a spare server for testing is what many professional companies do to prevent typos, etc. from getting leaked or ruining the experience for everyone (like in some online games where their patches seemed to not even be tested before being forced on everyone).
11th Dec 2017, 4:29 PM
Katie (Ctrl-Alt-Cuteness)
Katie (Ctrl-Alt-Cuteness) - avatar