Title: Avoiding redirects
Last modified: February 25, 2020

---

# Avoiding redirects

 *  Resolved [kmam](https://wordpress.org/support/users/kmammasis/)
 * (@kmammasis)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/)
 * 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](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 anyone’s 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](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 anyone’s advice.
    Thank you very much Kind Regards, Konstantinos
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Favoiding-redirects%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/#post-12477489)
 * 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 doesn’t have have cache root set up , which 
   you are basically running on dynamic page instead of cached page, please check
   this [wiki](https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:cache:common_installation:plesk-shared)
   for set up cache root.
 * Best regards,
 *  Thread Starter [kmam](https://wordpress.org/support/users/kmammasis/)
 * (@kmammasis)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/#post-12478225)
 * You are right. The first entry 302 error ([https://www.ofdreamsandknowledge.gr/](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
 *  [lechon](https://wordpress.org/support/users/lechon/)
 * (@lechon)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/#post-12478231)
 * [@kmammasis](https://wordpress.org/support/users/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/](https://varvy.com/tools/redirects/)
 *  Thread Starter [kmam](https://wordpress.org/support/users/kmammasis/)
 * (@kmammasis)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/#post-12478288)
 * www
 * 2 Redirect(s)
 * [http://www.ofdreamsandknowledge.gr](http://www.ofdreamsandknowledge.gr)
    302
   redirect [https://ofdreamsandknowledge.gr/](https://ofdreamsandknowledge.gr/)
   [https://ofdreamsandknowledge.gr/](https://ofdreamsandknowledge.gr/) 301 redirect
   [https://www.ofdreamsandknowledge.gr/](https://www.ofdreamsandknowledge.gr/)
 * Final status code: 200
 * __________________________________________
    no www
 * 2 Redirects
 * [http://ofdreamsandknowledge.gr](http://ofdreamsandknowledge.gr)
    302 redirect
   [https://ofdreamsandknowledge.gr/](https://ofdreamsandknowledge.gr/) [https://ofdreamsandknowledge.gr/](https://ofdreamsandknowledge.gr/)
   301 redirect [https://www.ofdreamsandknowledge.gr/](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](https://ofdreamsandknowledge.gr)
    301 redirect
   [https://www.ofdreamsandknowledge.gr/](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
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/#post-12482071)
 * 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,

Viewing 5 replies - 1 through 5 (of 5 total)

 The topic ‘Avoiding redirects’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/avoiding-redirects/#post-12482071)
 * Status: resolved