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.

[php] header(location: ...) und apache alias funktionieren nicht

Empfohlene Antworten

Hallo,

eine Webanwendung ist von Windows auf Unix umgezogen und seitdem gehen die Weiterleitungen nicht mehr, die ich an mehreren Stellen der Anwendung habe. Hier mal die Details...

- neuer Server besitzt Apache 2.2.3 mit PHP 5.2.0

- Apache hat in httpd.conf ein Alias auf meine Anwendung:


  Alias /planIT "/usr/local/lampp/htdocs/data/php/planIT"

  <Directory "/usr/local/lampp/htdocs/data/php/planIT">

        Options None

        AllowOverride None

        Order allow,deny

        Allow from all

  </Directory>

  
- Meine Anwendung hat Unterordner unter dem Hauptordner "planIT", z.b. "reader" In der index.php im Verzeichnis planIT wird auf "read.inc.php" im Ordner "reader" weitergeleitet per
header("Location: http://myserver/planIT/reader/read.inc.php");

... und dann kommt von Apache Error 404 - Seite nicht gefunden.

Was mache ich falsch?!

Sorry, wenn mehr ne Apache- als PHP-Frage, aber dachte, hier wäre es besser aufgehoben...

einmal reicht aber, gell ;)

Groß-Klein Schreibung?

Ja, Pfadschreibung (groß,klein etc) habe ich natürlich nochmal explizit geprüft, mir auch die Pfade ausgeben lassen über fireBug, das scheint alles richtig. Trotzdem kommt ein 404-Error... :(

Und wegen dem Doppel-Post habe ich ja schon im anderen Post geschrieben, dass der weg kann... beim Absenden hat er sich aufgehangen und dann zweimal geschrieben...

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.