Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


WHMCS main domain to sub directory redirection
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

WHMCS main domain to sub directory redirection

Comments

  • RadiRadi Host Rep, Veteran

    Why do you want to redirect it? Moved WHMCS?

  • You might need to reissue your WHMCS license.

  • kamalkamal Member

    Because there is a page https://domain.com/dir1/dir2 which I want to be seen when the site is visited

    I don't want to move WHMCS Installation it won't work as the page configured is inside page

    Also it's not a domain change so I don't think we need to reissue WHMCS license

  • RadiRadi Host Rep, Veteran
    edited July 2017

    The way I am thinking is to do it via .htaccess, however if WHMCS is on main page, then it will never load it as it would take into account the redirection and move you all the time to /dir1/dir2.

    What will be better:
    Move your WHMCS in a subdiretory and make the content of dir2 in the main directory.

  • kamalkamal Member

    That isn't possible because the dir1/dir2 page is from a script content and if I install it on Dir1 it will be dir1/dir2/dir3

    This seems to work RedirectMatch ^/$ /dir1/dir2

    But the domain.com/index.php doesn't work
    only domain.com is redirecting to domain.com/dir1/dir2
    but not domain.com/index.php

Sign In or Register to comment.