for example if in my index.php i have something like:
<?php
header('Location: /mypublicsite/index.php');
?>
what do the crawlers and/or robots get? just a blank page? or they actually arrive to /mypublicsite/index.php?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Initially, they get a blank page, with a header saying they should load a different page instead. The client has to load the new page itself.
Robots do understand the Location directive, and will load the new page instead.
You have to understand though you should stop the execution of your php script yourself, because the Location header can be ignored.
So something like this:
is unsafe, because $secret will be sent to the client.