Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Friendly URLs
#1
[Image: ReferAFriend2.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 must go before these in the existing .htaccess otherwise they get ignored.

here is what you need to add

# Refer A Friend
RewriteRule ^refer/([0-9]+)$ %{REQUEST_URI}/index.php?m=refer&id=$1 [L,NC]
RewriteRule ^refer-a-friend/$ %{REQUEST_URI}/index.php?m=refer&a=page [L,NC]
RewriteRule ^refer-a-friend$ %{REQUEST_URI}/index.php?m=refer&a=page [L,NC]
Gabriel
Technical Analyst I
WHMCS Services


Forum Jump:


Users browsing this thread: 1 Guest(s)