WHMCS Services Forum
Friendly URLs - Printable Version

+- WHMCS Services Forum (https://forum.whmcsservices.net)
+-- Forum: WS Modules (https://forum.whmcsservices.net/forumdisplay.php?fid=8)
+--- Forum: Addons Modules (https://forum.whmcsservices.net/forumdisplay.php?fid=9)
+---- Forum: Announcement Pro (https://forum.whmcsservices.net/forumdisplay.php?fid=62)
+---- Thread: Friendly URLs (/showthread.php?tid=196)



Friendly URLs - whmcsservices - 11-15-2025

[Image: AnnouncementPro8.png]

If you choose no, then you don't need to do anything

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

# Announcements Pro
# Rewrite SEO-friendly URLs to WHMCS index.php
RewriteRule ^announcements/view/([0-9]+)/([a-zA-Z0-9-]+)/?$ %{REQUEST_URI}/index.php?m=wsannouncementpro&action=view&id=$1 [L,QSA]
RewriteRule ^announcements/([0-9]+)/([a-zA-Z0-9-]+)/?$ %{REQUEST_URI}/index.php?m=wsannouncementpro&catrgoryid=$1 [L,QSA]
RewriteRule ^announcements/viewbymonth/([a-zA-Z0-9-]+)/?$ %{REQUEST_URI}/index.php?m=wsannouncementpro&viewbymonth=$1 [L,QSA]

# Ensure "wsannouncementpro/" loads index.php?m=wsannouncementpro
RewriteRule ^announcements/?$ %{REQUEST_URI}/index.php?m=wsannouncementpro [NC,L]