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.
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
I have WHMCS installed on root of the domain https://domain.com
I want to redirect
https://domain.com
https://www.domain.com
https://domain.com/index.php
https://www.domain.com/index.php
to
Please help !
Comments
Why do you want to redirect it? Moved WHMCS?
You might need to reissue your WHMCS license.
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
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.
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