WORDPRESS_DB_NAME: wp_juplo
WORDPRESS_DB_CHARSET: latin1
WORDPRESS_DB_COLLATE: latin1_general_ci
- WORDPRESS_DEBUG: true
+ WORDPRESS_DEBUG: 1
WORDPRESS_SECRET_KEY: vTelcON5v26YTrdtKfMvyYFuetRwaWyK2K4tfalgpr
WORDPRESS_TABLE_PREFIX: ''
ports:
volumes:
- ./wordpress/wp-config.php:/usr/src/wordpress/wp-config.php:ro
- ./wordpress/wp-content/themes/juplo-theme:/usr/src/wordpress/wp-content/themes/juplo-theme:ro
+ - ./wordpress/wp-content/mu-plugins/debug-redirects.php:/usr/src/wordpress/wp-content/mu-plugins/debug-redirects.php:ro
- ./wordpress/wp-content/plugins/classic-editor:/usr/src/wordpress/wp-content/plugins/classic-editor:ro
- ./wordpress/wp-content/plugins/google-analytics-for-wordpress:/usr/src/wordpress/wp-content/plugins/google-analytics-for-wordpress:ro
- ./wordpress/wp-content/plugins/google-sitemap-generator:/usr/src/wordpress/wp-content/plugins/google-sitemap-generator:ro
--- /dev/null
+<?php
+// Loggt alle Redirects
+add_filter('wp_redirect', function($location, $status) {
+ error_log("HTTP_HOST = " . ($_SERVER['HTTP_HOST'] ?? 'not set'));
+ error_log("SERVER_NAME = " . ($_SERVER['SERVER_NAME'] ?? 'not set'));
+ error_log("HTTPS = " . ($_SERVER['HTTPS'] ?? 'not set'));
+ error_log("SERVER_PORT = " . ($_SERVER['SERVER_PORT'] ?? 'not set'));
+ error_log("HTTP_X_FORWARDED_PROTO = " . ($_SERVER['HTTP_X_FORWARDED_PROTO'] ?? 'not set'));
+ error_log("WP REDIRECT FROM: " . $_SERVER['REQUEST_URI']);
+ error_log("WP REDIRECT TO: " . $location);
+ error_log("STATUS: " . $status);
+ return $location;
+}, 10, 2);
+
+// Optional: alle Redirects verhindern
+// add_filter('wp_redirect', '__return_false');
+