Sometimes, you cannot access your WordPress dashboard because of the redirect loop. Pay attention to not just the domain name, but also the HTTP vs HTTPS, and www vs www parts of the URL. df83e048e8b2 caddy:2-alpine "caddy run -config …" 23 hours ago Up 23 hours 0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp, 2019/tcp caddyĥf3bc6765cfa wordpress:5.8.2-apache "docker-entrypoint.s…" 23 hours ago Up 23 hours 0.0.0.0:8081->80/tcp wordpressħdce1a66b0fb mysql:5.7 "docker-entrypoint. To fix this, go to your WordPress admin dashboard and edit these URL fields to be identical. I’m running WordPress using a Docker container with Caddy as a reverse proxy (for SSL). Redirect your old tumblr links to your new url. Var linkSet = document.querySelectorAll('a') Ī recently moved my WordPress Multisite to a new provider. If they are not (i.e not logged in) - redirect them to your login page. If you, like some people, do not like the use of jQuery when a vanilla JS solution is perfectly viable, you could totally use this code instead: Hope this helps you out if you’ve been getting a lot of broken links and please like and/or reblog if this has been useful to you, thank you!! (Note that I’m using the old syntax for initialize.js which has now been depreciated by the authors) Infinite Redirect to login behind nginx reverse proxy in docker - Installation - Nextcloud community Infinite Redirect to login behind nginx reverse proxy in docker Installation Creideiki May 17, 2020, 5:50pm 1 Hi there, I set up a raspberry pi with two docker images: nginx and nextcloud/postgres. Thus I rely on the help of initialize.js plugin to help run the function again every time a new tumblr redirect link is introduced into the DOM. With infinite scroll (or if any links are loaded dynamically into the DOM), the loop will not run on the new links as it’s set to run on document.ready. attr() again to change the href of the original link. Following that I use JavaScript’s decodeURIComponent function to change the remaining string back into a normal URL, since what we get after the previous step has got all those %s and ugly stuff replacing our regular slashes and colons. attr() and remove all the unnecessary parts with JavaScript’s string split() method, picking out the correct part of the arrays that I want. Then I get the entire long redirect URL with jQuery’s. each(), I run a loop through all the links on the blog that have the tumblr redirect syntax (which looks something like t./redirect). It's trying to load /login on port 443, but returning a 302 redirect to the same URL every time. However, after about 5 minutes the cookie expires and it tries to redirect to /login, but it gets stuck in an infinite redirect loop. remove tumblr redirects script by //using old initialize.js plugin with old syntax 2 I'm using the HWI OAuth Bundle to allow users to login with Google Apps. As per before, the jQuery library is unnecessary if you’ve already got one in your theme but the initialize.js plugin is important! After upgrading GitLab to version 8.8.3 I can now login in all browsers and the endless loop of redirects doesn't happen anymore. I never tried to disable Nginx, since the Reverse Proxy needs another server in the background. If you’ve got infinite scroll installed or some other funky way of loading more links to your blog, you’ll have to use this version instead so that the script will also work on all the new links. Gitlab is running now after I installed an update, but the redirect loop still exists in all browsers except IE 11. Var replaceURL = decodeURIComponent(originalURL) remove tumblr redirects script by originalURL = $(this).attr("href").split("?z=").split("&t=") (The jQuery library is unnecessary if you’ve already got one in your theme) Make the external links on your blog go from this: to this: simply by copying and pasting this following code into your HTML: Basically were pissing me off, so I decided to post this simple script I wrote to fix redirect errors that will hopefully piss them off too :^)
0 Comments
Leave a Reply. |