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: Refer A Friend (https://www.whmcsservices.community/forumdisplay.php?fid=163)
+---- Thread: Friendly URLs (/showthread.php?tid=654)



Friendly URLs - wssupport - 03-10-2020

[Image: ReferAFriend2.png]

If you choose no then you dont 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 is enabled, the rules need to go before these in the existing .htaccess otherwise they get ignored.

here what you need to add

# Refer A Friend
RewriteRule ^refer/([0-9]+)$ ./index.php?m=refer&id=$1 [L,NC]
RewriteRule ^refer-a-friend/$ ./index.php?m=refer&a=page [L,NC]
RewriteRule ^refer-a-friend$ ./index.php?m=refer&a=page [L,NC]