WHMCS Services Forum
Friendly URLs - Printable Version

+- WHMCS Services Forum (https://www.whmcsservices.community)
+-- Forum: WS Modules (https://www.whmcsservices.community/forumdisplay.php?fid=5)
+--- Forum: Addons Modules (https://www.whmcsservices.community/forumdisplay.php?fid=6)
+---- Forum: Agree Terms (https://www.whmcsservices.community/forumdisplay.php?fid=35)
+---- Thread: Friendly URLs (/showthread.php?tid=1257)



Friendly URLs - whmcsservices - 02-27-2025

[Image: agree.png]

If you choose no then you don't need to do nothing

If you choose Yes then you need to edit the .htaccess

I have added the ReWrite rules to .htaccess in the root of our WHMCS install but the rules are being ignored - so all related links are giving a 404 error.

ANSWER: If Friendly URLs are enabled, the rules need to go before these in the existing .htaccess otherwise they get ignored.

here is what you need to add


#Agree Terms
# Ensure "agreeterms/" loads index.php?m=agreeterms
RewriteRule agreeterms/view/accepted/?$ %{REQUEST_URI}/index.php?m=agreeterms&view=accepted [NC,L]
RewriteRule agreeterms/?$ %{REQUEST_URI}/index.php?m=agreeterms [NC,L]