![]() |
.htaccess: Problem bei Rewrite Conditions
Hallo,
ich habe ein Problem mit meiner Rewrite Konfiguration. zunächst möchte ich alle http:// Aufrufe nach https:// umleiten. Das ist soweit kein Problem:
Code:
Nun möchte ich aber, dass eine bestimmte php-Datei - sagen wir special.php - NICHT umgeleitet werden soll.
<IfModule mod_rewrite.c>
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule>
Code:
Leider funktioniert das nicht. Es wird trotzdem auch die special.php auf https:// umgeleitet.
<IfModule mod_rewrite.c>
RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !(.*)special(.*) RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule> Kann mir jemand erklären, warum? Besten Dank amigage |
AW: .htaccess: Problem bei Rewrite Conditions
|
AW: .htaccess: Problem bei Rewrite Conditions
Vielen Dank für den Link.
Die Lösung ist simpel:
Delphi-Quellcode:
Das Problem war, dass mein Browser aufgrund von R=302 die Aufrufe gecached hat und somit den http Aufruf immer auf https umgeleitet hat.
<IfModule mod_rewrite.c>
RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{REQUEST_URI} !special\.php RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] </IfModule> Der Hinweis unter ![]() Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:10 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz