Ep. 22 - How to add url restrictions to a Joomla! membership site with RSMembership! using the {*} wildcard
RSMembership! can handle 5 types of restrictions to a Joomla! membership site : folders, articles, sections, category, URL.
URL restrictions can be imposed using 2 wildcards: {?} or {*}.
- The {?} wildcard replaces just one character.
- The {*} wildcard replaces an unlimited number of characters.
- index.php?option=com_rstickets&page=ticket&id={?}&Itemid=75
Let's see how can you add URL restrictions using the {*} wildcard following some simple steps.
For the {?} wildcard watch the episode 21
The steps used in this episode and ep. 21 for URL restrictions are basically the same, the only difference is when we are replacing the wildcards in URLs.
IMPORTANT: When you want to impose an URL restriction always use the non-SEF version of the URL.
In this video tutorial, we have configured a help desk component (RSTickets!) to offer paid customer support.
Before setting URL restriction, any user can submit tickets, access and read the answers to tickets.
We will restrict the access to staff's answer using the {?} wildcard.
1. In the backend Joomla! panel, head to Components -> RSMembership! -> Memberships
2. Select the membership for which you want to apply restrictions.
3. Choose the "Shared Content" tab (the 4th tab from the left) -> Add Content
4. In the window that just opened click on "URL".
5. Copy and paste the answer's URL
.6. Replace the ticket id with the {?} wildcard.
.7. After applying these settings, the restricted URL (the staff's answer) can be accessed only by users with an active membership.
This is an example of a restricted URL with the {?} wildcard:
While you are editing the membership, you can also set a redirect URL for users that don't have the appropriate membership.
You can test RSMembership! on RSJoomla! demo server: frontend or backend.
Related videos:
- Ep. 20 - How to add article restriction to a Joomla! membership site with RSMembership!
- Ep.21 - How to add URL restrictions to a Joomla! membership site with RSMembership using the {?} wildcard













