WHMCS Fully Friendly URLs not working

Hi there,

I recently switch to cyberpanel, I’m using WHMCS software, the problem is the Fully Friendly URLs inside the admin panel are not working correctly (any url inside the admin panel works), i.e:

  • domain.tld/whmcs/admin/setup (not working)

I open a thread with WHMCS Community (Fully Friendly URLs not working with openlitespeed - Troubleshooting Issues - WHMCS.Community) and request me to ask here, because other user are being using whmcs with OLS without any issue and maybe is an issue with htaccess and cyberpanel.

I have added a “context” with the following values:

URI: /clients/
Location: /home/alliance/public_html/clients
Accesible: Yes
Enable Expires: Not Set
Auto Index: Not Set
Enable Rewrite: Yes
Rewrite Inherit: Not Set
Rewrite Base:
Rewrite Rules:

RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ $1/ [R]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond $0#%{REQUEST_URI} ([^#])#(.)\1$
RewriteRule ^.*$ %2index.php [QSA,L]

Any ideas? to get this rules working correctly?

Went to install whmcs, a nulled version just to test.

I installed it on a folder called “teste”, which for this example is the equivalent to your “whmcs” folder.
Default with friendly URLs set up to “index.php”.


With “full friendly rewrite”


Is this what you intend to do?

Exactly, my problem is when switch from “Friendly index.php” to “Full Friendly Rewrite” the “whmcs/admin/setup” page show an 404 error

I’m using a custom “admin folder” just described here:


Like that?

The only steps I did were:
1 - Setup database for WHMCS
2 - Run the WHMCS installer
3 - Login WHMCS admin, configurations, change from friendly index.php to full friendly rewrite
4 - Run this command “service openlitespeed restart” at the vps

The last step it’s because the .htaccess may take some time to be updated (3 minutes if I recall correctly), as it runs on a cronjob. Restarting it manually makes sure that it reads the changes.
Perhaps this last step was what was happening?

I did not edit any htaccess rules inside the OLS panel so it confirms those aren’t needed.

I read your original thread at the whmcs forum, and what “WHMCS ANWAR” quoted you, was a post from 2017, at that time indeed OLS didn’t have 1:1 htaccess functionality, but now it should all work fine.

If you still have the same issue, send me a message with your anydesk so I can take a look at it.

Yes; in the meantime I changed the configuration in my installation to use the default admin directory, however the result is the same.

That’s pretty serious volunteering for community :+1: