Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mehrere RewriteRules möglich?

Empfohlene Antworten

Veröffentlicht

Hi @all,

ich bin gerade dabei ein paar Optimirungen am Apache vorzunehmen. Dabei möchte ich alle Anfragen die über "HTTP" kommen an "HTTPS" weiterleiten, bis auf eine bestimmte Adresse, diese soll eine Weiterleitung auf eine andere Adresse zeigen. Zum besseren Verständnis:

http://old-adress.example.com  --> https://info-adress.example.com 

http://new-adress.example.com  --> https://new-adress.example.com
Ich wollte es folgender maßen lösen, aber leider funkt das nicht:

RewriteCond  %{HTTP_HOST}     !^old-adress\.example\.com [NC]

RewriteCond  %{SERVER_PORT}   !^443$

RewriteRule ^old-adress\.example\.com http://info-adress.example.com [R=307,NC]

RewriteRule ^(.*)$ http://new-adress.example.com [R=307,NC,L]

Leider klappt das nicht :( Hat jemand eine Idee wie ich das Problem lösen könnte?

Wo ist denn dort die Regel für die HTTPS-Umleitung?

Du musst nach der Umleitung auf HTTPS auch ausschließen, dass dann die Regel erneut greift. Wenn du im Apache das "RewriteLogLevel" erhöhst, dann zeigt er dir eine Menge nützliche Informationen an.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.