Hi, I'm gonna do few changes about my proxy site.. let say i have proxy.com, and when client is going to surf it goes to proxy.com/index.php?q=aHR0cDovL3d3dy now, I want to change domain, so, when client is going to surf, it should to go like proxyblablabla.com/index.php?q=aHR0cDovL3d3dy instead of proxy.org/index.php?q=aHR0cDovL3d3dy can anyone help? thanks
use redirect function on proxy.com/index.php put this on header of index.php <?php header("Location: proxyblablabla.com/index.php"); ?> PHP: or in form field source code: where <form action="index.php" change that to <form action="proxyblablabla.com/index.php"
If your are changing the domain, you need not do anything. I assume that you form code is like this : <form method="post" action="index.php"> Code (markup): This will work regardless of domain.
Thanks for helping me out guys, but looks like I didnt give enough information. I'm using php proxy script. index.inc.php <form method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>"> index.php: $_script_url = 'http' . ((isset($_ENV['HTTPS']) && $_ENV['HTTPS'] == 'on') || $_SERVER['SERVER_PORT'] == 443 ? 's' : '') . '://' . $_http_host . ($_SERVER['SERVER_PORT'] != 80 && $_SERVER['SERVER_PORT'] != 443 ? ':' . $_SERVER['SERVER_PORT'] : '') . $_SERVER['PHP_SELF']; I just want client to surf from another domain not primary one. However, I've just figure it out Thanks anyway
Enable hotlinking on your proxy but make sure to create a whitelist of domains which are allowed to hotlink to your proxy.