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

Created on 17 August 2023, 11 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

Comments & Activities

Production build 0.69.0 2024