In Drupal 7 /user is the login page, blocking with Apache blocks other /user paths

Created on 17 August 2023, almost 2 years ago
Updated 29 September 2024, 10 months ago

When using this module in Drupal 7 the login page can be accessed at the /user path. So for this module to work that path needs to be blocked through .htaccess as suggested.

RewriteCond %{QUERY_STRING} ^$
RewriteCond %{REQUEST_URI} ^/user      
RewriteRule ^.* - [F,L]

This works great, except there are unintended repercussions. Anything that uses the /user path will not function, such as viewing user profiles or trying to edit a profile, or add fields, etc, which all user the /user path.

This does not appear to be an issue in later Drupal versions since the login path is only available at /user/login.

Steps to reproduce: Enable module, create a key/value pair in the admin interface, add above code to .htaccess.

Is there any workaround or this an inherent issue that is not fixable?

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States desierto

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024