transparent redirection of new domains, without .htaccess?


Well-Known Member
May 27, 2006
Johannesburg, South Africa
cPanel Access Level
Root Administrator
Hi all

This is a challenging request :)

I want all new accounts (domains to automatically redirect to a certain page on my main website, but without a index.php or .htacess file in the root folder.

The reason for this simple, most of our users use Fantastico to install say Joomla, or something, and each time they're prompted to delete the files first before installating. This unfortunattely causes a bit of extra, unwanted support requests. Even though have put this on our support site, people don't read it.

So, what I'm thinking is, to have some way ot redirecting the empty domain to a page on my website, untill such a time that the user installs a script. I realise this will probably have to go into the httpd.conf file, but I'm not not sure what to put there, or if that's the right approach?

Alternatively, how would I use a php.ini in the site's root folder for the same purpose? this php.ini file could be put in the /etc/skel folder so that it's included in all new accounts.

Any suggestions?