URL - Access restrictions -Regular Expression

  • José Palma
  • Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 2 months ago #109837 by José Palma
Hello

I would like restrict acess to a url, and i need to use regular expressions.

I need two subscriptions:

The first subscription that grant access to page that have in url: topic1 or topic2, like this:

www.misite.com/forum/membership-pro/topic1/create.html
www.misite.com/forum/membership-pro/topic2/create.html

But if the page have also as in the url user for example

www.misite.com/forum/membership-pro/topic2/user/create.html

I need a second subscription that restrict access to this page.

If i put in the First Plan Subscription

topic1 topic2

And in the Second Plan the url restriction

topic1 topic2 user

It doesn´t work because the First subscription plan grant access to the thirty page (that have user in url) also to USERS that haven´t subscribe the second plane.

So i probably need to use regular expressions in url restrictions

I tried to use:

In the First Plan

topic1 OR topic2 AND NOT user

In the Second

topic1 OR topic2 OR user

But it don´t work.

I appreciate help thank you.

Jose

Please Log in or Create an account to join the conversation.

More
7 years 2 months ago #109882 by John Willems
Replied by John Willems on topic URL - Access restrictions -Regular Expression
Can you manage this by using Joomla Groups.

Restrict access to first plan T1,T2 using Joomla Group "topics"
Restrict access to second plan to Joomla Groups "topics,users"

You may have to add the Joomla groups and name them as you want. I recently had to do something similar and was able to use Joomla Groups as a solution. Saves all that coding as well and is simple to do.

Please Log in or Create an account to join the conversation.