Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    veve2’s suggestion of using .htaccess rewrites is a good one though it doesn’t exactly answer your question. You can add a reweritecond and rewriterule that looks for the “go” parameter and forwards requests to that URL. In such a case, url.php is never reached, so the base URL only needs to be the domain, there is no reason to specify files, though it wouldn’t hurt anything by doing so.

    If you really do need to go through url.php for some reason, get the URL from $_GET[‘go’]. Be sure to sanitize the the value before using it. You can then redirect to that URL by sending a location header. header("Location: $url");

    The url.php file must not generate any output to the browser in order to use header().

    In both cases the needed code resides on the savemoneyindia.com server. Yet you say you need help with alldealbox.com. How are these two domains related?

    Thread Starter alldealbox

    (@alldealbox)

    These two are different domains. I found this on the first website so I use it as an example.

    Thank you so much for the explanation. I now understand what i need to do.

    Regards
    Alldealbox

    • This reply was modified 9 years, 1 month ago by alldealbox.
    • This reply was modified 9 years, 1 month ago by alldealbox.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirect Php’ is closed to new replies.