Is it possible to include a php in a website but when you refer to the website you included, then you'll be redirected. For example:
In index.php we have:
<?php include('http://mydomain.com/aboutme.php') ?>
but if you type http://mydomain.com/aboutme.php then you'll be redirect to index.php.
Is that possible?
Thanks
includeis intended to load PHP code for execution. When you include a file via URL like that, what you'll get is the OUTPUT of the remote script, not its source code. Unless aboutme.php outputs PHP code, you'll most likely get syntax errors.