Skip to content

Login redirect issue #1048

@meminens

Description

@meminens

Describe the bug
After logging into my account, a redirection occurs to https://xxx.com/BookStack/BookStack. Root is normally https://xxx.com/BookStack. And an error message shows up saying Sorry, The page you were looking for could not be found. But login is successful and there are no other issues.

Steps To Reproduce
See above.

Expected behavior
No redirection should occur.

Screenshots
N/A

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings):
  • PHP Version: 7.2
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
Apache configuration:

 Alias /BookStack "/var/www/xxx.com/html/BookStack/public/"
 <Location /BookStack>
     Options +FollowSymLinks
     RewriteEngine On
     # Handle Authorization Header
     RewriteCond %{HTTP:Authorization} .
     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
     # Redirect Trailing Slashes If Not A Folder...
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_URI} (.+)/$
     RewriteRule ^ %1 [L,R=301]
     # Handle Front Controller...
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^ index.php [L]
 </Location>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions