jonniejoejonson Posted March 28, 2010 Share Posted March 28, 2010 Hello, There is a function in cpanel that allows you to park a domain... Is there a way to do this using php or something else? regards j regards J Link to comment https://forums.phpfreaks.com/topic/196797-php-script-to-point-domain-to-site/ Share on other sites More sharing options...
GetPutDelete Posted March 28, 2010 Share Posted March 28, 2010 You could just use the Header function to redirect users. Or cURL to get fixed content from one site and display it for the parked domain. Link to comment https://forums.phpfreaks.com/topic/196797-php-script-to-point-domain-to-site/#findComment-1033089 Share on other sites More sharing options...
inversesoft123 Posted March 28, 2010 Share Posted March 28, 2010 You can create wildcard domains editing .htaccess or directly editing httpd.config Link to comment https://forums.phpfreaks.com/topic/196797-php-script-to-point-domain-to-site/#findComment-1033090 Share on other sites More sharing options...
jonniejoejonson Posted March 29, 2010 Author Share Posted March 29, 2010 Thanks for your replies, however... getputdelete, your idea is longer than me simply using cpanel to park the domiain. inversesoft123, i have set up a wildcard htaccess file, so that any domain that esolves to my server pints to my website, however you still have to park the domain on the server before this can work... im trying to eliminate the parking of the domain, so i have less work to do. regards J. Link to comment https://forums.phpfreaks.com/topic/196797-php-script-to-point-domain-to-site/#findComment-1033380 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.