Project

General

Profile

Actions

Bug #100137

closed

404 redirect error on restricted servers

Added by Dieter Porth over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2023-03-10
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

A 404 error like an unknown link redirects to a 404 page of the local website. The website is shown to everyone.
The local server runs under ddev and a apache-server is defined for the local website..
The redirect works as expected, if a unknown error occur..

As soon as I restrict access to the website via .htaccess and .htpasswd, I would get the attached error page instead of the 404 page.

Paste into .htaccess

AuthUserFile "/usr/www/users/myAbsolutePath/current/public/.htpasswd"
AuthName "Realm"
AuthType Basic
require valid user

And paste in htpasswd (user:test password: Test123!)

test:{SHA}lq/Xq6QG6tQ7o9YrLA+WYi5LLJM=

I would have expected the 404 page to keep popping up on broken/unknown speaking links.


Files

Actions #1

Updated by Christoph Lehmann over 1 year ago

  • Status changed from New to Needs Feedback

A redirect to a 404 page should always be prevented. You better always get a direct 404 response.

Given a 404 page could not be fetched by TYPO3 (because of basic auth) in order to show it directly, then you could try to whitelist TYPO3 via IP. Something like that:

    <RequireAny>
      Require ip 22.33.44.55
      Require valid-user
    </RequireAny>

Does it help?

Actions #4

Updated by Dieter Porth over 1 year ago

  • % Done changed from 0 to 100
Actions #5

Updated by Sybille Peters over 1 year ago

  • Status changed from Needs Feedback to Closed
  • % Done changed from 100 to 0

Closing because problem seems to be resolved.

Actions

Also available in: Atom PDF