PHP redirect plus masking.
Posted: Tue Sep 28, 2010 11:49 pm
Hi
Well I have been using a php redirect script where I create a new folder and in the folder paste a index.php file which contains the code for a redirect.
For example http://DomainName/Sub redirects to http://www.yahoo.com using the following code
First Question:- Is there a way to do it quickly instead of every time having to create new folders and then creating an index file in them?
Second Question:- What code should I insert in the above so that when someone gets redirected he still sees http://DomainName/Sub
I look forward to the help.
Well I have been using a php redirect script where I create a new folder and in the folder paste a index.php file which contains the code for a redirect.
For example http://DomainName/Sub redirects to http://www.yahoo.com using the following code
Code: Select all
<?php
header( 'Location: http://www.yahoo.com' );
?>Second Question:- What code should I insert in the above so that when someone gets redirected he still sees http://DomainName/Sub
I look forward to the help.