display domain code?
Started on the old forum in February 2011 · view the original in the archive · old links redirect here
suael wrote: Could anyone give me the code to display domain/url on .htaccess?
There is not such thing.
<?php
$hostname = $_SERVER['SERVER_NAME'];
$hostname = str_replace('www.', '', $hostname);
echo "The domain: <B>".$hostname."</B> is Under Construction";
?>
domain.com
If www,domain.com it will be domain.com
Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!
SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…