Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

Using HTTP_POST?

SpaceshipSpaceship
SpaceshipSpaceship
SpaceshipSpaceship
Watch

DSL

Established Member
Impact
6
How would I make the url of a domain appear in a page if it was redirected? What variable or HTTP_POST method would I use?
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
<?
echo $_SERVER['HTTP_HOST'];
?>

that will echothe domain you viisited from

then what you could maybe do, is then say if the redirect link was http://bob.com/bob.php

you could change the code to above code to
<?
$url = $_SERVER['HTTP_HOST'];
?>

and in the redicrect url (so after bob.php)

add <? echo "?url=$url"; ?>

now open bob.php on the server and place this

<?
$url = $_GET['url'];
echo $url;

?>

the link would appear as

redirect link would hcnage to

http://bob.com/bob.php?url=yourdomain.com
 
0
Close
AIVikingsAIVikings

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back