Get The Most Affordable Hosting in the World!
Starting at just $1.87/month, Vercaa offers unbeatable pricing for world-class web hosting services.
Fast, reliable, and secure hosting to power your website without breaking the bank. Plus, enjoy a free CDN for faster loading times worldwide!
Get Started Now!Symptoms
When navigating to various sections of the Admin Area and Client Area, you may see an error that is similar to this example:
![404 Not Found error page](https://media.screensteps.com/image_assets/assets/002/084/459/original/585e7e25-b9d5-48dd-aba2-3de229f157eb.png)
The example's URL generates an SEO-friendly link instead of a link using variables (for example, index.php?rp=/admin/setup
). Unfortunately, this is not rendering the page properly.
A 404 Page Not Found error message in the Admin Area may be due to an outdated .htaccess
file.
Resolution
There are several ways to resolve this issue, depending on the situation.
Updating the .htaccess file
Updating the .htaccess
file is the usual method of resolution. Only Apache-based web servers support this file. If you are using Nginx, this method will not work. WHMCS is ONLY tested on Apache.
First, go to the Admin Area Dashboard. From there, go to Configuration > System Settings > General Settings.
![Navigate to Configuration > System Settings](https://media.screensteps.com/image_assets/assets/004/818/136/original/0ce00bdd-9ad0-49fe-bf14-fe2b54ffc79a.png)
If the 404 error prevents you from accessing Configuration > System Settings, type the filename into your browser's URL bar: configgeneral.php
Scroll to the bottom of the page to the Friendly URLs section.
You may see that this setting is being manually overridden. By default, WHMCS will detect and pick the best option for your server environment.
If it has been manually overridden, there may be a problem in your configuration. To work with this, click Advanced Settings to the right of the Friendly URLs menu.
A new window will display important URI-related information. In the example below, Full Friendly Rewrite did not pass the environment mode tests.
To attempt to correct this, click the Rewrite File tab.
![](https://media.screensteps.com/image_assets/assets/002/084/465/original/a3307cba-d498-4f3a-a501-0e93e11eb0cb.png)
This tab displays that the .htaccess
rules are out-of-date.
We recommend that you enable Auto-Managed Rewrite to prevent this in the future. Then, click Synchronize to close the window.
![](https://media.screensteps.com/image_assets/assets/002/084/457/original/5e07fbe4-8594-4a8b-a89f-294f3b3af712.png)
Click the Refresh icon for Friendly URLs to refresh the menu. If the issue is resolved, Full Friendly Rewrite will display in the menu and the sections that displayed the 404 error will be accessible again.
![](https://media.screensteps.com/image_assets/assets/002/084/469/original/05df3663-d892-4108-8128-f3ae21924888.png)
Reverting Friendly URL Mode to Basic
WHMCS attempts to automatically detect the correct Friendly URLs mode. However, some server settings may prevent WHMCS from detecting the friendly modes available.
In this case, the easiest way to resolve this issue is changing your Friendly URLs setting to Basic URLs. This ensures that the links are set to the traditional URL that does not require mod_rewrite
or any other server-side rules to render.
Admin Area
To do this, go to Configuration > System Settings > General Settings.
![Navigate to Configuration > System Settings](https://media.screensteps.com/image_assets/assets/004/818/138/original/75b98a71-67de-44fc-981a-0430e55981f9.png)
If the 404 error prevents you accessing Configuration > System Settings, type the filename into your browser's URL bar: configgeneral.php
Scroll to the bottom of the page to the Friendly URLs section. Choose Basic URLs and click Save Changes.
![](https://media.screensteps.com/image_assets/assets/002/084/455/original/1b4b601b-32fb-444a-ae8e-2d653239dfc5.png)
When you do this, all of the previously-friendly-styled URLs will revert to a basic format and the issue will resolve.
SQL Query
If the WHMCS Admin Area is inaccessible, the Friendly URL setting can be modified directly in the MySQL® database with the following query:
UPDATE `tblconfiguration` SET `value` = 'basic' WHERE `setting` = 'RouteUriPathMode';
Make certain to back up your database before running this query.
When you do this, all of the previously-friendly-styled URLs will revert to a basic format and the issue will resolve.