No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I accidentally posted in the wrong section of the forum... [URL="http://www.daniweb.com/forums/thread279411.html"]http://www.daniweb.com/forums/thread279411.html[/URL] Im trying to use php echo to display domaincom (with no dot in between) and can't figure it out. [CODE]<?php echo(preg_replace('/^[a-z]*./','',$_SERVER["HTTP_HOST"])); ?>[/CODE] works to display domain.com but I need domaincom |
|
I have 50+ domains I have parked and instead of using GoDaddy's default parked page I created my own to generate ad revenue or at the very least help increase Google PR. Currently Im using [CODE]<?php echo(preg_replace('/^[a-z]*./','',$_SERVER["HTTP_HOST"])); ?>[/CODE] to display domain.com throughout the page. However, my next step is to … |
|
I have hundreds of domains so I needed an htaccess that would force www without knowing the exact domain name. I got it to work, but then it started forcing www in front of ALL my subdomain URLs too, not just domain.com (ex: [url]http://www.sub.domain.com[/url]). So I need something that will … |