Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

transparent redirection of new domains, without .htaccess?

Discussion in 'General Discussion' started by SoftDux, Dec 5, 2006.

  1. SoftDux

    SoftDux Well-Known Member

    May 27, 2006
    Likes Received:
    Trophy Points:
    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?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice