Jump to content

how to show different page as homepage using whmc six template


cumputerman

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");

 

Link to comment
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
Link to comment
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).

Link to comment
Share on other sites

  • 1 month later...
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated