• Welcome to NamesLot.com Domain Name Forum

    NamesLot.com Domain Name Forum offers a fully open forum to discuss domain industry news and a 0% commission marketplace for you to buy and sell domain names.

    We have reorganized our Marketplace so now it is easier to get attention to your domain while it is also easier for buyers to find the right domain name.

    If you want us to add more threads to our marketplace, please contact us! Listing on our marketplace as always, 100% free! Register NOW or Login HERE!

Putting URL on page

Status
Not open for further replies.

neluni

New Member
Anyone know if it's possible to automatically put the current URL into the page. Say I want a landing page with the domain on it, but don't want to handcraft each page for each domain.

Thanks in advance
 
If it is in PHP then you can print it like $_SERVER['SCRIPT_FILENAME']

OR


<?php
$hostname = $_SERVER['SERVER_NAME'];
$hostname = str_replace('www.', '', $hostname);
echo $hostname . htmlentities($_SERVER['REQUEST_URI']);
?>
 
Status
Not open for further replies.

Members online

No members online now.

Forum statistics

Threads
19,859
Messages
69,856
Members
44,590
Latest member
KRS_Infotech
Active members today
1
New members today
0
New threads today
20
New posts today
20

Follow NamesLot on Twitter!

NamesLot proudly supported by

NamesLot proudly supported by

Top