Avoiding redirects




Wordpress LScache Plugin: Avoiding redirects

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, I am in the process of speed optimizing my website. I have used varios plugins but at the moment I am feeling confident with LiteSpeed. After various tunings that fall beyond the scope of this message, I have managed to achieve some decent speed, however, I believe that it can get better. I am using GMetrix to assess the speed and here is where my problem lies. In the Waterfall section of GMetrix, I can see all process and the order at which they are executed. There is also a warning in YSLOW to avoid redirect links. What I see in the waterfall section: https://gtmetrix.com/reports/www.ofdreamsandknowledge.gr/hR7faTnt is that the page is initially loaded @ ofdreamsandknowledge.gr and subsequently it loads @ ofdreamsandknowledge.gr/en. I think this is not right and I would appreciate anyones insight on how to correct this problem. Later on in the same list, we see another redirect: https://www.ofdreamsandknowledge.gr/wp-content/uploads/2018/11/logo-watermark.png?id=6521 once more I am not sure how to get rid of this as well. On the 4th row before the end of the waterfall list, it seems to reload the original page ofdreamsandknowledge.gr/ I am not a GMetrix maniac or trying to achieve 100% in every sector, however I feel that in this instance the GMetrix tool is correct. Please correct me. I would appreciate anyones advice. Thank you very much Kind Regards, Konstantinos The page I need help with: https://www.ofdreamsandknowledge.gr Hi, root@test2:# curl -I -XGET https://www.ofdreamsandknowledge.gr/wp-content/uploads/2018/11/logo-watermark.png?id=6521 HTTP/2 301 content-type: text/html charset=UTF-8 set-cookie: PHPSESSID=lhon3gsuecpkcj4a28vdi7iapp path=/ expires: Tue, 25 Feb 2020 13:31:20 GMT cache-control: max-age=3600, public, no-transform, must-revalidate x-redirect-by: WordPress location: https://www.ofdreamsandknowledge.gr x-litespeed-cache-control: no-cache content-length: 0 date: Tue, 25 Feb 2020 12:31:20 GMT server: LiteSpeed x-powered-by: PleskLin last-modified: Mon, 1 Oct 2018 10:10:10 GMT alt-svc: quic=:443 ma=2592000 v=35,39,43,44 x-redirect-by: WordPress ?> this means something in your WP, probably a plugin related to water mark , that sends the redirection. Actually I think in this case there is nothing LSCWP can do , you need to fix the root cause why it sends redirection. I also noticed your Plesk server doesnt have have cache root set up , which you are basically running on dynamic page instead of cached page, please check this wiki for set up cache root. Best regards, You are right. The first entry 302 error (https://www.ofdreamsandknowledge.gr/) is triggered by the Polylang plugin, while the 404 is directed by WordPress. Question is how to get rid of both. Where do you start? Deactiving the Polylang plgu in is not an option. Thanks @kmammasis There is definitely something weird going on with your site redirection. You can use the tool below to see if your site is doing additional redirects. The tool displays redirects from www and non-www versions of a url using both http and https. https://varvy.com/tools/redirects/ www 2 Redirect(s) http://www.ofdreamsandknowledge.gr 302 redirect https://ofdreamsandknowledge.gr/ https://ofdreamsandknowledge.gr/ 301 redirect https://www.ofdreamsandknowledge.gr/ Final status code: 200 __________________________________________ no www 2 Redirects http://ofdreamsandknowledge.gr 302 redirect https://ofdreamsandknowledge.gr/ https://ofdreamsandknowledge.gr/ 301 redirect https://www.ofdreamsandknowledge.gr/ Final status code: 200 _________________________________________________ www (https) No redirect Final status code: 200 ___________________________________________________ no www (https) 1 Redirect(s) https://ofdreamsandknowledge.gr 301 redirect https://www.ofdreamsandknowledge.gr/ Final status code: 200 Yes, it is redirecting. I am trying to figure out how to remove these unnecessary redirects. Thanks Hi, In your case if you want to force to use www domain or root domain , then this redirection is must-have. some of your redirection are done in 2 redirections , try minimize them into only 1 redirections with a proper rewrite rule. Best regards,



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference