I solved it with the help of a colleagues of mine by adding the following lines into wp-config.php:
$_SERVER['HTTP_HOST'] = $_SERVER['HTTP_X_FORWARDED_HOST'];
$_SERVER['REQUEST_URI'] = '/stuff/wordpress' . $_SERVER['REQUEST_URI'];
$_SERVER['SCRIPT_NAME'] = '/stuff/wordpress' . $_SERVER['SCRIPT_NAME'];
$_SERVER['PHP_SELF'] = '/stuff/wordpress' . $_SERVER['PHP_SELF'];
$_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
Related Posts:
- Why when I click on a link into the WP admin panel I am redirected to a link that doesn’t contains wp-admin prefix, so I obtain 404 error
- WordPress (behind HAProxy and Jetty), not multisite, in sub folder – and /en/wp-admin/ keeps redirecting to /wp-admin/
- wp-admin 302 redirects
- WordPress logged in but no access to wp-admin
- Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error
- “Too many redirects” ONLY when trying to access wp-admin page
- Admin Page Redirect
- Unable to login and wp-login.php redirects to wp-admin%2F&reauth=1?
- I’m getting a 404 message when I try to access wpadmin
- How to eliminate weird 404 errors in wp-admin?
- Wrong canonical link on wp-admin pages
- stop redirection on /wp-admin call to /wp-login
- wp-admin produces a 302 redirect to itself
- Users are redirected to homepage instead of wp-admin
- How to show an error message after publishing a post?
- WordPress in sub directory wp-admin problem
- Too many datadabse connections – upper ceiling mysql
- Login to wp-admin “redirect_to” points to wrong URL after migration
- WP-admin giving 404
- wp-login.php — redirect logged in users to custom URL
- Can’t access wp-admin Internal Server Error 500
- Can’t access admin dashboard with wp-admin without /index.php after it
- 500 Internal Server Error after Register dialog, but with successful registration
- Change Dashboard url
- WordPress subdomain wp-admin redirects to main domain
- Using /wp-admin works, using /login gives a 404. Why?
- WP Database Error (Windows Server 2008 & SQL Server)
- Why is there an intermediate redirect to https://public-url.org/wp-admin?
- Prevent /wp-admin/ from redirecting to homepage?
- 404 of wp-admin pages [closed]
- https://mydomain/wp-admin redirects to wp-login.php?redirect_to=https%3A%2F%2Fmydomain%2Fwp-admin%2F&reauth=1
- How To Reset Ownership And Permissions of Wp-Content Folder, In Order to Fix HTTP Error When Uploading Images to WordPress Media Library
- Redirect non-admin users away from wp-admin/index.php (main dashboard page) to wp-admin/profile.php
- Not Found (404) error on admin page, CSS gone on blog
- I get a 404 page on /wp-admin but not wp-login but as soon as I login I get a 404 again [closed]
- Can’t log into wp-admin after migration from localhost to server
- How to create a WP Admin user in phpMyAdmin for WordPress 4.6
- 404 error comes up when I go to wp-admin after first installation [closed]
- Created a new subdomain with same content. Should I add a redirect in my old subdomain?
- WP admin page gives 404
- wp-admin – 404 after custom login form
- How to fix ‘WordPress redirection loop problem in wp-login.php page’?
- Unable to access folders in same level as wordpress installation
- Wp-admin is giving me an error “Sorry, you are not allowed to access this page.”. I do have access to the wp-admin besides the dashboard itself
- Too many redirects after added SSL redirect on port 80 virtual host
- wp-admin redirects to 404
- class-wp-hook.php on line 288
- Cannot log in to the admin, no error message [closed]
- Can’t access wp-admin, redirects to http://%24domain/wp-admin/
- Unable to properly login
- Restrict access to admin-post.php
- wp-login not found – All usual solutions not working
- Redirect an entire WordPress site on a subdomain, except wp-admin
- Admin sometimes redirects to HTTPS
- 404 Admin Error
- Too Many Redirects – WP-Admin Only
- WP Admin Login keeps redirecting to login
- Uncaught SyntaxError: Unexpected Token Illegal
- Pages section (only) not loading after publishing large number of pages
- CPU overload spam – redirect link to wp-admin and new post
- How do I fix wp-admin error when exporting reusable blocks?
- How to access wp-admin from original website after setting the domain redirect/forwarding
- WordPress /wp-admin redirect to wrong port in docker
- Login redirect_to url is pointing to a url with the port
- Redirect from wp-admin back to page
- WordPress critical error on wp-admin page with 100% permissions
- Unable to access my page or WP Admin
- Can’t access WP-Admin via HTTPS
- mixed contents admin panel is Unsecured
- How do I fix the 403 error for wp-admin/admin-ajax.php?
- Wp-admin Redirection loop after moving to subdirectory
- Trying to login to my site redirects me to the first page
- Avoid executing a function (redirect) if I’m in the admin area
- stop customize.php redirect to login page if admin is not logged in
- Failed to load resource: the server responded with a status of 431 ()
- wp-admin redirects to standard wordpress page
- I cannot go to http://novathon.cloud.reply.eu/wp-admin – always redirected to /wp-login
- Unable to log in as admin
- Random HTTPs redirections at admin area in shared hosting
- Getting 404s in wp-admin after logged in
- admin_url() do not retrieve the correct url in an subdirectory install
- Can’t log into WordPress after domain change
- How to troubleshoot 404s in WordPress admin
- How can visitors redirect wp-admin to the homepage?
- Non Object Notice Error – How to fix please
- WordPress blog fails to open
- Redirect Restricted Page to 404
- How to redirect/rewrite all /wp-login requests
- How can I enable Google Analytics on a file download link?
- Change the link of ‘Howdy’ at the top right
- Reorder custom submenu item
- Resize Admin Featured Image Thumbnail in CPT Edit Screen
- Adding HTML/Text to Top of Subscriber’s Profile Backend Page
- WordPress address URL keeps dropping the www
- Redirect a page id url but not the page slug
- wp theme.. Could not create directory
- Adding Notification Bubble on Admin Top Bar
- Performance-issue in WP-admin with a lot of posts
- Has a PHP update given me a 404?
- Cannot Access wp-admin