Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

Ep. 22 - How to add url restrictions to a Joomla! membership site with RSMembership! using the {*} wildcard

RSMembership! can handle 5 types of content restrictions: folders, articles, sections, category, URL.

In this tutorial, we will show you how can you impose URL restrictions using the {*} wildcard following some simple steps.
If you want to see how to add URL restrictions with the {?} wildcard watch the episode 21.

URL restrictions:

    URL restrictions can be imposed using 2 wildcards: {?} or {*}.
  1. 1. The {?} wildcard replaces just one character.
  2. 2. The {*} wildcard replaces an unlimited number of characters.

 

 

Important:

  1. When you want to impose an URL restriction, always use the non-SEF version of the URL.

 

Restrict content with the {*} wildcard:

  1. We've configured a help desk component (RSTickets!) that allows users to submit tickets, access and read the answers to tickets.
  2. Using the {*} wildcard, we'll restrict the access to this component.

 

Step 1:

  1. In the backend Joomla! panel, head to Components >> RSMembership! >> Memberships

 

Step 2:

  1. Select the membership for which you want to apply restrictions.

 

Step 3:

  1. Choose the "Shared Content" tab (the 4th tab from the left) -> Add Content

 

Step 4:

  1. In the window that just opened click on "URL".

 

Step 5:

  1. Copy and paste the answer's URL.

 

Step 6:

  1. Add the {*} wildcard right after the component name.

 

Step 7:

  1. After applying these settings, the restricted URLs (the entire front-end functionality of the rstickets component) can be accessed only by users with an active membership.

 

Example:

  1. This is an example of a restricted URL with the {*} wildcard:
    • index.php?option=com_rstickets{*}
  2. While you are editing the membership, you can also set a redirect URL for users that don't have the appropriate membership.

 

Test RSMembership! in frontend

 

Test RSMembership! in backend

 

Related Videos


1000 Characters left

Antispam Refresh image Case sensitive

Feedback