Jump to content
cumputerman

how to show different page as homepage using whmc six template

Recommended Posts

just use the hook I posted in the thread below and change the URL to your domainchecker.php page.

<?php

function homepage_redirect_to_url_hook($vars)
{
    if ($vars['templatefile']=="homepage"){
        header("Location: https://www.seimaxim.com/domainchecker.php");
        exit;
    }
}
add_hook("ClientAreaPageHome", 1, "homepage_redirect_to_url_hook");

 

Share this post


Link to post
Share on other sites

This hook is taking visitor to the url as i want, but browser bar do not show address as https://www.seimaxim.com  . browser bar is showing address as https://www.seimaxim.com/cart.php?a=add&domain=register  , instead i want browser bar to show my homepage "address" like https://www.seimaxim.com  after opening this page 

https://www.seimaxim.com/domainchecker.php

Share this post


Link to post
Share on other sites
On 3/12/2018 at 13:13, cumputerman said:

This hook is taking visitor to the url as i want, but browser bar do not show address as https://www.seimaxim.com . browser bar is showing address as https://www.seimaxim.com/cart.php?a=add&domain=register  , instead i want browser bar to show my homepage "address" like https://www.seimaxim.com  after opening this page - https://www.seimaxim.com/domainchecker.php

the problem is there's no quick simple way to do that... there's no admin option to use page x as the homepage; you can't just copy the template across because all the arrays would be missing... you could potentially use htaccess to do it, but with recent versions you might run into that clashing with the Friendly URLs feature (which could be a minefield to workaround).

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines