• Resolved Copiaurbietorbi

    (@copiaurbietorbi)


    Good day folks,

    We do have your plugin installed, but when we test the speed of our site in different platforms, we do still get “Avoid URL redirects” and the explanation we got is “URL redirects are made using HTTP status codes 301 and 302.”

    Although the grade we got is not bad (and we don’t care), we believe it can be improved (we do have a need for speed though).

    On our .htaccess file we do have the following:

    #BEGIN WordPress -original

    RewriteEngine On RewriteBase /wordpress/ RewriteRule ^index.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /wordpress/index.php [L]

    #END WordPress

    On the settings dashboard of the plugin we do have the following options activated only:

    Mixed content fixer

    Enable WordPress 301 redirect

    Enable 301 .htaccess redirect

    Fire mixed content fixer with different method

    So, what can we do to fix this issue and not to worry about these “Avoid URL redirects” anymore?

    In advance, thank you for your help and interest!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support jarnovos

    (@jarnovos)

    Hello @copiaurbietorbi,

    This plugin can add a 301 redirect from https:// to https://, which is considered a best practice.

    However, your attached settings suggest that you don’t have such a redirect enabled in the Really Simple SSL plugin at the moment.

    You could use a tool such as redirect-checker.org to identify how many redirects occur when visiting an URL to your site, and what type of redirects this concerns.

    Kind regards, Jarno

    Thread Starter Copiaurbietorbi

    (@copiaurbietorbi)

    Hello @jarnovos,

    Perhaps there was a confusion in the way we shared our settings. Please check this link to see what we have: https://imgur.com/a/iYO6scp

    This is what we got from the site you kindly shared with us:

    >>> https://www.ourcompany.com

    > ——————————————–
    > 301 Moved Permanently
    > ——————————————–
    Status:301 Moved Permanently

    Code:301

    Server:nginx

    Date:Fri, 02 Feb 2024 01:02:15 GMT

    Content-Type:text/html; charset=iso-8859-1

    Content-Length:232

    Connection:close

    Location:https://www.ourcompany.com/

    >>> https://www.ourcompany.com/

    > ——————————————–
    > 200 OK
    > ——————————————–
    Status:200 OK

    Code:200

    Server:nginx

    Date:Fri, 02 Feb 2024 01:02:16 GMT

    Content-Type:text/html; charset=UTF-8

    Connection:close

    Vary:Accept-Encoding,User-Agent

    X-Cache-Handler:cache-enabler-engine

    Do we need to adjust anything on the plugin settings or write any additional code on the .htaccess to eliminate these “Avoid URL redirects” for good?

    Thank you for your help!

    Plugin Support jarnovos

    (@jarnovos)

    Hi @copiaurbietorbi,

    The attached results indicate that the site has a correct 301 redirect from https://www. (insecure) to https://www. (secure).

    If you no longer want to redirect visitors from the https:// to the https:// version of the site, you would change that by using these settings in the plugin.

    Kind regards, Jarno

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Avoid URL redirects’ is closed to new replies.