Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By pwoodhouse on
I want to restrict access to edit/blog/add and user nodes but not effect any .css files.
would a locationmatch with this regex
\/node\d+\/(edit|blog|add|user)\/[\w]+\.(?!css)[\w]+/i
do the job?
Comments
\/((node\d+\/(edit|add))|
\/((node\d+\/(edit|add))|(blog|user))\/[\w]+\.(?!css)[\w]+/i
Might actually be more useful for Drupal... :S