Stop the rewrite rule from looping on IONOS
IONOS answered every rewritten address with a blank Apache 500: the !-f condition did not recognise the already rewritten index.php, so the rule fired again until Apache gave up. RewriteBase and an explicit stop for index.php, as in WordPress, fix it (ADR 114). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
28070298aa
commit
760efc3297
4 files changed
+32
-2
No files matched your search
+4
-1
@@ -1618,7 +1618,10 @@ final class CmsTest extends TestCase
|
||||
// Und der Vordereingang verrät nicht, welche PHP-Fassung hier läuft.
|
||||
$index = (string) file_get_contents(__DIR__.'/../public/index.php');
|
||||
self::assertStringContainsString("header_remove('X-Powered-By')", $index);
|
||||
self::assertStringContainsString('Header always unset X-Powered-By', (string) file_get_contents(__DIR__.'/../public/.htaccess'));
|
||||
$htaccess = (string) file_get_contents(__DIR__.'/../public/.htaccess');
|
||||
self::assertStringContainsString('Header always unset X-Powered-By', $htaccess);
|
||||
// Ohne diese Zeile schreibt IONOS index.php endlos auf sich selbst um: weißer 500er (ADR 114).
|
||||
self::assertStringContainsString("RewriteBase /\nRewriteRule ^index\\.php$ - [L]\nRewriteCond %{REQUEST_FILENAME} !-f", $htaccess);
|
||||
}
|
||||
|
||||
public function testABackgroundPictureShrinksForSmallScreensEvenWhenSetOnce(): void
|
||||
|
||||
Reference in new issue
Block a user