19 redirect :-(

Home Forums Redirect loops 19 redirect :-(

This topic contains 30 replies, has 3 voices, and was last updated by  Mark Wolters 10 months, 1 week ago.

Viewing 30 posts - 1 through 30 (of 31 total)
  • Author
    Posts
  • #41010 Reply

    Andrea

    Hi, I installed the plug in and the big problems started for me.

    My site is ionoleggioauto.com

    I suggest that in order to make the site visible I had to enable the ssl option on cloudflare and set it a flexible otherwise crome and other browsers give me too many redirect errors.

    Checking with controls will even bring us 19 redirects.

    I can not solve the problem in any way, I’m sclering.

    Can you help me kindly?
    Thank you

    #41011 Reply

    I see you have varnish activated. Can you try deactivating Varnish Cache? It should be a setting somewhere on your cpanel or directadmin, or else your hoster should know where to disable it.

    Varnish often causes redirect loops in combination with SSL.

    #41158 Reply

    Andrea

    Thanks for your prompt response.

    I use Varnish, but I have to wait Monday because technical support today and tomorrow is not there, I live in Italy, and we are on Saturday.
    On Cpanel I did not find any option to disable Varnish Cache.

    I just turned off Cloudflare that was set to Flexible in Crypto, I noticed that if I reset the site it works, if I turn it off by ERR_TOO_MANY_REDIRECTS error

    And this does not allow me to solve the problem in any way, I did a thousand tests.

    I have the site in production and this is a serious issue for me, and also because I have an affiliate system that use javascripts one of which I talk to below.

    I also noticed that since I installed the plug in some JSs are not loaded on my site, like if you try to access this url which is the direct link to a JS error ERR_TOO_MANY_REDIRECTS

    This is the url of the Javascript: https://limoauto.com/widgetpersiti/noleggionewwindows.js

    I had to turn off Photon because I saw from the Chrome console that images uploaded to CDN were not recovered.

    No more than that, I can wait on Monday to turn Varnish off, but poor running with Cloudflare amazes me a bit … and can not even figure out what produces those 19 redirects.

    #41159 Reply

    Andrea

    the url correct fot the javascript

    This is the url of the Javascript: https://ionoleggioauto.com/widgetpersiti/noleggionewwindows.js

    #41162 Reply

    I see you also have a language plugin, it sometimes helps to re-save the settings in the language plugin, as language plugins also redirect. If it redirects to http, you can get loops.

    CloudFlare is also a candidate for the cause, sometimes you need to set a pagerule.

    These and other things you can try are listed here:
    https://really-simple-ssl.com/knowledge-base/my-website-is-in-a-redirect-loop/

    Photon on SSL gives issues, that is a known issue with Photon on SSL. Deactivating photon resolves the issue.

    The javascript file not being found might be caused by hotlink protection. Some possible causes for 404 issues are listed here.
    https://really-simple-ssl.com/knowledge-base/404-pages-wordpress-site-migrating-ssl/

    #41164 Reply

    Andrea

    I’ve already turned off photon but I’ve seen some pictures do not see them anymore.

    For the language I saw on WPML -> Languages I set up like this:

    URL format for languages
    Choose the URL format for displaying content in a language

    Ā Ā  Directory con lingue diverse ((https://ionoleggioauto.com/ – Italiano, https://ionoleggioauto.com/ar/ – Arabo))

    It seems correct, I still saved the setting again, I saved the structure of the permalinks.

    All the tests in the second link I’ve already made, in fact I wrote to you about Cloudflare and trance behavior, although I believe that Cloudflare has the HotLink protection system that I do not really understand from where it turns off.

    As for the cache, I have W3 Total Cache and Autoptimize active.

    #41166 Reply

    Andrea

    On the page where I have javascript in the Chrome error console, I’ll tell you this

    the page is: https://ionoleggioauto.com/widget-ionoleggioauto-sul-tuo-sito/

    Failed to load resource: net::ERR_NAME_RESOLUTION_FAILED
    notes-common-v2.js:32 Uncaught ReferenceError: Backbone is not defined
    at notes-common-v2.js:32
    at notes-common-v2.js:158
    admin-bar-v2.js:2 Uncaught ReferenceError: _ is not defined
    at admin-bar-v2.js:2
    autoptimize_4039e8eā€¦.php:4 JQMIGRATE: Migrate is installed, version 1.4.1
    ….
    noleggio-auto-300.html:12 GET https://ionoleggioauto.com/410.shtml
    noleggio-auto-300_2.html:15 GET https://ionoleggioauto.com/410.shtml 404 ()
    noleggio-auto-600.html:12 GET https://ionoleggioauto.com/410.shtml 404 ()
    noleggio-auto.html:12 GET https://ionoleggioauto.com/410.shtml 404 ()

    #41167 Reply

    On that page the script seems to be called wrong:

    <script src="https://widgetpersiti/noleggioauto.js" type="text/javascript">

    Which is not a valid domain.

    #41169 Reply

    Andrea

    Forgive me, I was just making that link, but all the others are correct.
    I still fixed the page, and these are the errors in the console:

    Failed to load resource: the server responded with a status of 404 ()
    jquery-migrate.min.js:2 JQMIGRATE: Migrate is installed, version 1.4.1
    noleggioauto.js Failed to load resource: the server responded with a status of 404 ()
    4/410.shtml Failed to load resource: the server responded with a status of 404 ()
    noleggioauto.js Failed to load resource: the server responded with a status of 404 ()
    (index):269 XHR finished loading: GET “https://public-api.wordpress.com/rest/v1.1/notifications/?http_envelope=1&fields=id%2Cnote_hash&number=10”.
    XHR finished loading: GET “https://public-api.wordpress.com/rest/v1.1/notifications/?http_envelope=1&fields=id%2Cnote_hash&number=10”.
    send @ s0.wp.com/:4
    ajax @ s0.wp.com/:4
    receiveMessage @ (index):269
    (anonymous) @ (index):275
    dispatch @ s0.wp.com/:3
    r.handle @ s0.wp.com/:3
    (index):269 XHR finished loading: GET “https://public-api.wordpress.com/rest/v1.1/notifications/?http_envelope=1&fields=id%2Cnote_hash&number=10”.
    send @ s0.wp.com/:4
    ajax @ s0.wp.com/:4
    receiveMessage @ (index):269
    (anonymous) @ (index):275
    dispatch @ s0.wp.com/:3
    r.handle @ s0.wp.com/:3
    (index):269 XHR finished loading: GET “https://public-api.wordpress.com/rest/v1.1/notifications/?http_envelope=1&fields=id%2Cnote_hash&number=10”.

    #41170 Reply

    Andrea

    Make a test yourself, even html links do not open …

    https://ionoleggioauto.com/widget-ionoleggioauto-sul-tuo-sito/

    #41171 Reply

    Andrea

    If I try to open the javascript link directly on my browser redirect to a 410 error page

    https://www.ionoleggioauto.com/widgetpersiti/noleggionewwindows.js

    #41172 Reply

    Andrea Guerra

    I have disabled Varnish through htaccess, maybe you may be useful in the knowledge base:

    Header set Cache-Control “max-age=0, private, no-cache, no-store, must-revalidate”

    By disabling varnish i have managed to disable ssl on cloudflare, but nothing to do …

    There are always 19 redirects.

    #41174 Reply

    Andrea

    I am desperate.

    Worrying me, I made 2 gross mistakes:

    1 – to install your plug in
    2 – to install it on the site in production.

    By disabling Cloudflare, Varnish, mixed content does not even work anymore.

    I found hundreds of messages on the console on the home page:

    Mixed Content: The page at ‘https://cargoauto.com/’ was loaded over HTTPS, but requested an insecure stylesheet ‘http://autoauto.com/wp-content/plugins/sitepress-multilingual-cms/templates/language -switchers / legacy-dropdown-click / style.css’. This request has been blocked; The content must be served over HTTPS.

    And anyway the 19 redirects have remained despite I’ve turned off all plugins.

    I do not know what to do anymore, it does not seem that even by restoring a backup the problem is resolved, I’ve tried it but I always find problems finding myself on the site.

    On the search console there are thousands of issues, you can not even see the robots.txt file and lost a bunch of indexing.

    #41204 Reply

    I still see Varnish in the header. Did you activate it again?

    You can of course just deactivate Really Simple SSL from your dashboard. Then your site will revert to http. Another option you have is to rename the plugin folder, so you will stay on https, but the plugin will not be active anymore. All issues remaining will then be caused by your site being on SSL.

    But I expect the issue not be caused by Really Simple SSL, but by the fact that you’re on SSL.

    You appear to have two issues: the redirects, and 404 pages.

    Redirects:
    If there are multiple redirects, there has to be something redirecting back to http. Really Simple SSL is not doing that, so there’s something either in CloudFlare or in your WordPress setup doing that.
    If you disable the wp redirect and .htaccess redirect in settings/ssl, there Really Simple SSL will not be redirecting anymore. In mosts cases multiple redirects are caused by Varnish. You can check here if Varnish is still active:
    http://www.redirect-checker.org/

    404 pages
    As your files do not load in the browser even when loaded directly, this points to either the server or CloudFlare. I suspect there’s a security setting on your server that might be causing this. If CloudFlare in development mode does not help, I suspect it’s your server.

    #41205 Reply

    The s0.wp.com you posted is a photon url. If you deactivated photon, this is probably cache.

    #41238 Reply

    Andrea

    Thanks for your response, and forgive me for yesterday’s venture, but I am in crisis, thankfully I managed to restore at least the essential parts of the site so that it works at least for the affiliates and customers that they have to book.

    As for Varnish I read this post:

    https://wordpress.org/support/topic/too-many-http-redirects-on-my-website-takes-time-for-landing-page/#post-9238333

    It seems that the problem is not caused by varnish.

    Anyway, hoping they will respond, I sent a signal to my hosting provider to see if there are any wrong server-side settings.
    However on wordpress I set up the site with www before it was without www.

    Cloudflare responded that bypassing however cloudflare on the site there are too many redirects, to ask my hosting provider to see that there are no incorrect server settings.

    If you do not mind you put my .htaccess maybe some plug in creates some conflict by overwriting in the htaccess some settings that should not be.

    <FilesMatch "(?i)^.*\.(ico|flv|jpg|jpeg|png|gif|js|css|woff)$">
    ExpiresActive On
    ExpiresDefault A2592000
    </FilesMatch>
    <IfModule mod_expires.c>
      ExpiresActive on
    # Perhaps better to whitelist expires rules? Perhaps.
      ExpiresDefault                          "access plus 1 month"
    # Data
      ExpiresByType text/xml                  "access plus 0 seconds"
      ExpiresByType application/xml           "access plus 0 seconds"
      ExpiresByType application/json          "access plus 0 seconds"
    # Favicon (cannot be renamed)
      ExpiresByType image/x-icon              "access plus 1 week"
    # Media: images, video, audio
      ExpiresByType image/gif                 "access plus 1 month"
      ExpiresByType image/png                 "access plus 1 month"
      ExpiresByType image/jpeg                "access plus 1 month"
      ExpiresByType video/ogg                 "access plus 1 month"
      ExpiresByType audio/ogg                 "access plus 1 month"
      ExpiresByType video/mp4                 "access plus 1 month"
      ExpiresByType video/webm                "access plus 1 month"
    # Webfonts
      ExpiresByType application/x-font-ttf    "access plus 1 month"
      ExpiresByType font/opentype             "access plus 1 month"
      ExpiresByType application/x-font-woff   "access plus 1 month"
      ExpiresByType image/svg+xml             "access plus 1 month"
      ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
    # CSS and JavaScript
      ExpiresByType text/css                  "access plus 1 year"
      ExpiresByType application/javascript    "access plus 1 year"
    </IfModule>
    Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate" 
    # BEGIN WP Performance Score Booster Settings
    php_value max_input_vars 10000
    ## BEGIN Enable GZIP Compression ##
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-httpd-php
    AddOutputFilterByType DEFLATE application/x-httpd-fastphp
    AddOutputFilterByType DEFLATE image/svg+xml
    SetOutputFilter DEFLATE
    </IfModule>
    ## END Enable GZIP Compression ##
    <FilesMatch "!\.(gif|jpe?g|png)$">
    php_value session.cookie_domain ionoleggioauto.com
    </FilesMatch>
    <FilesMatch "wp-login.php">
    Deny from All
    ErrorDocument 403 "Forbidden"
    </FilesMatch>
    ## BEGIN Vary: Accept-Encoding Header ##
    <IfModule mod_headers.c>
    <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>
    ## END Vary: Accept-Encoding Header ##
    <ifModule mod_headers.c>
    Header unset ETag
    Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
    Header set Pragma "no-cache"
    Header set Expires "Mon, 13 jun 2016 20:30:00 GMT"
    </ifModule>
    <IfModule mod_headers.c>
    Header set Connection keep-alive
    Header set Expires "max-age=A2592000, public"
    Header unset ETag
    </IfModule>
    # END WP Performance Score Booster Settings
    # BEGIN W3TC Browser Cache
    <IfModule mod_mime.c>
        AddType text/css .css
        AddType text/x-component .htc
        AddType application/x-javascript .js
        AddType application/javascript .js2
        AddType text/javascript .js3
        AddType text/x-js .js4
        AddType text/html .html .htm
        AddType text/richtext .rtf .rtx
        AddType image/svg+xml .svg
        AddType text/plain .txt
        AddType text/xsd .xsd
        AddType text/xsl .xsl
        AddType text/xml .xml
        AddType video/asf .asf .asx .wax .wmv .wmx
        AddType video/avi .avi
        AddType image/bmp .bmp
        AddType application/java .class
        AddType video/divx .divx
        AddType application/msword .doc .docx
        AddType application/vnd.ms-fontobject .eot
        AddType application/x-msdownload .exe
        AddType image/gif .gif
        AddType application/x-gzip .gz .gzip
        AddType image/x-icon .ico
        AddType image/jpeg .jpg .jpeg .jpe
        AddType image/webp .webp
        AddType application/json .json
        AddType application/vnd.ms-access .mdb
        AddType audio/midi .mid .midi
        AddType video/quicktime .mov .qt
        AddType audio/mpeg .mp3 .m4a
        AddType video/mp4 .mp4 .m4v
        AddType video/mpeg .mpeg .mpg .mpe
        AddType application/vnd.ms-project .mpp
        AddType application/x-font-otf .otf
        AddType application/vnd.ms-opentype ._otf
        AddType application/vnd.oasis.opendocument.database .odb
        AddType application/vnd.oasis.opendocument.chart .odc
        AddType application/vnd.oasis.opendocument.formula .odf
        AddType application/vnd.oasis.opendocument.graphics .odg
        AddType application/vnd.oasis.opendocument.presentation .odp
        AddType application/vnd.oasis.opendocument.spreadsheet .ods
        AddType application/vnd.oasis.opendocument.text .odt
        AddType audio/ogg .ogg
        AddType application/pdf .pdf
        AddType image/png .png
        AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
        AddType audio/x-realaudio .ra .ram
        AddType image/svg+xml .svg .svgz
        AddType application/x-shockwave-flash .swf
        AddType application/x-tar .tar
        AddType image/tiff .tif .tiff
        AddType application/x-font-ttf .ttf .ttc
        AddType application/vnd.ms-opentype ._ttf
        AddType audio/wav .wav
        AddType audio/wma .wma
        AddType application/vnd.ms-write .wri
        AddType application/font-woff .woff
        AddType application/font-woff2 .woff2
        AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
        AddType application/zip .zip
    </IfModule>
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresByType text/css A31536000
        ExpiresByType text/x-component A31536000
        ExpiresByType application/x-javascript A31536000
        ExpiresByType application/javascript A31536000
        ExpiresByType text/javascript A31536000
        ExpiresByType text/x-js A31536000
        ExpiresByType text/html A3600
        ExpiresByType text/richtext A3600
        ExpiresByType image/svg+xml A3600
        ExpiresByType text/plain A3600
        ExpiresByType text/xsd A3600
        ExpiresByType text/xsl A3600
        ExpiresByType text/xml A3600
        ExpiresByType video/asf A31536000
        ExpiresByType video/avi A31536000
        ExpiresByType image/bmp A31536000
        ExpiresByType application/java A31536000
        ExpiresByType video/divx A31536000
        ExpiresByType application/msword A31536000
        ExpiresByType application/vnd.ms-fontobject A31536000
        ExpiresByType application/x-msdownload A31536000
        ExpiresByType image/gif A31536000
        ExpiresByType application/x-gzip A31536000
        ExpiresByType image/x-icon A31536000
        ExpiresByType image/jpeg A31536000
        ExpiresByType image/webp A31536000
        ExpiresByType application/json A31536000
        ExpiresByType application/vnd.ms-access A31536000
        ExpiresByType audio/midi A31536000
        ExpiresByType video/quicktime A31536000
        ExpiresByType audio/mpeg A31536000
        ExpiresByType video/mp4 A31536000
        ExpiresByType video/mpeg A31536000
        ExpiresByType application/vnd.ms-project A31536000
        ExpiresByType application/x-font-otf A31536000
        ExpiresByType application/vnd.ms-opentype A31536000
        ExpiresByType application/vnd.oasis.opendocument.database A31536000
        ExpiresByType application/vnd.oasis.opendocument.chart A31536000
        ExpiresByType application/vnd.oasis.opendocument.formula A31536000
        ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
        ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
        ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
        ExpiresByType application/vnd.oasis.opendocument.text A31536000
        ExpiresByType audio/ogg A31536000
        ExpiresByType application/pdf A31536000
        ExpiresByType image/png A31536000
        ExpiresByType application/vnd.ms-powerpoint A31536000
        ExpiresByType audio/x-realaudio A31536000
        ExpiresByType image/svg+xml A31536000
        ExpiresByType application/x-shockwave-flash A31536000
        ExpiresByType application/x-tar A31536000
        ExpiresByType image/tiff A31536000
        ExpiresByType application/x-font-ttf A31536000
        ExpiresByType application/vnd.ms-opentype A31536000
        ExpiresByType audio/wav A31536000
        ExpiresByType audio/wma A31536000
        ExpiresByType application/vnd.ms-write A31536000
        ExpiresByType application/font-woff A31536000
        ExpiresByType application/font-woff2 A31536000
        ExpiresByType application/vnd.ms-excel A31536000
        ExpiresByType application/zip A31536000
    </IfModule>
    <IfModule mod_deflate.c>
            AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp application/json application/vnd.ms-access application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
        </IfModule>
    </IfModule>
    <FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header append Cache-Control "public"
             Header set X-Powered-By "W3 Total Cache/0.9.5.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
            Header set Pragma "public"
            Header append Cache-Control "public"
             Header set X-Powered-By "W3 Total Cache/0.9.5.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
        FileETag MTime Size
        <IfModule mod_headers.c>
            Header set Pragma "public"
            Header append Cache-Control "public"
             Header set X-Powered-By "W3 Total Cache/0.9.5.4"
        </IfModule>
    </FilesMatch>
    <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|json|mdb|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|WEBP|JSON|MDB|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
        <IfModule mod_headers.c>
             Header unset Last-Modified
        </IfModule>
    </FilesMatch>
    # END W3TC Browser Cache
    # BEGIN W3TC Page Cache core
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{HTTPS} =on
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{SERVER_PORT} =443
        RewriteRule .* - [E=W3TC_SSL:_ssl]
        RewriteCond %{HTTP:Accept-Encoding} gzip
        RewriteRule .* - [E=W3TC_ENC:_gzip]
        RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
        RewriteRule .* - [E=W3TC_PREVIEW:_preview]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
        RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -F
        RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
    </IfModule>
    # END W3TC Page Cache core
    # BEGIN W3TC FeedBurner
    <IfModule mod_rewrite.c>
        RewriteCond %{HTTP_USER_AGENT} FeedBurner
        RewriteRule ^wp-content/uploads/([0-9]+)/([0-9]+)/hotlink-ok/(.*)$ /wp-content/uploads/$1/$2/$3 [L]
    </IfModule>
    # END W3TC FeedBurner
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    
    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.5.17]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    # END WordPress
    # WordPress SEO - XML Sitemap Rewrite Fix
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]
    RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    
    # END WordPress SEO - XML Sitemap Rewrite Fix
    #41243 Reply

    Just to make sure, disable the .htaccess redirect from Really Simple SSL (settings/ssl). I see you already have a CF specific redirect so that should handle the redirect to https.

    I see no other redirects in the .htaccess. As these redirects can also be handled in php, this does not ensure there are no plugins redirecting.

    #41246 Reply

    That thread is on a Varnish helper plugin, which does not handle the varnish itself. I know there are situations where Varnish works with SSL, but I have also encountered a lot of situations where it only worked when Varnish was deactivated. So unless deactivating Varnish is very difficult, I think it’s worth a try.

    I would also (temporarily) deactivate the caching W3TC plugin, to make sure this doesn’t conflict.

    #41249 Reply

    Andrea

    aFor all these redirects, I’ve solved the solution I submitted from a user to another post on wordpress.org, maybe it will be useful if you happen to be with someone else who asks for help on it.

    In a nutshell I set the domain with www (it was before without www).
    Next on Cloudflare I set SSL to FULL (first it was Flexible).
    I completely deleted .htaccess because there were a lot of conflicts, I just updated the home page and re-tested it here:

    https://varvy.com/tools/redirects/

    That here:

    http://www.redirect-checker.org/

    And now finally got me Final status code: 200.

    I scanned 48 hours reading thousands of lines of code and making a thousand changes, in the end the solution was so simple šŸ™

    The only thing I can not understand is because in the Chrome error console when I open the page:

    https://www.ionoleggioauto.com/widget-ionoleggioauto-sul-tuo-sito/

    It tells me there are errors for javascripts recalled.
    For i Javascript error me 410.

    But if I enter the javascript url in the browser, for example: https://www.autohost.com/widgetpersiti/noleggionewwindows.js

    It opens it correctly and I can see javascript content

    It is obviously an encrypted javascript.

    #41250 Reply

    Andrea

    the link correct:

    But if I enter the javascript url in the browser, for example: https://www.ionoleggioauto.com/widgetpersiti/noleggionewwindows.js

    Sorry but Google Translate makes the whims.

    #41251 Reply

    Andrea

    I forgot to write, just because it may be of help to other users, who made all the changes in the previous post that helped me solve the problem, I also had to save the permalinks again, otherwise I got a mistake for all The pages of the site.

    #41253 Reply

    Great it’s solved.

    For that javascript, I get this error:

    Uncaught SyntaxError: Unexpected identifier

    Which does not seem connected to your SSL migration.

    #41286 Reply

    Andrea

    Thanks for your answer.
    Could you explain, however, what better to say?

    I also have problems with the analytics account and google search console.
    Especially with sitemap and robots.txt file.
    I do not understand anything anymore … I have a thing, it ruins a thousand.

    #41323 Reply

    It looks like there’s a javascript error in the code, but it’s impossible to see what the error is because it is obfuscated.

    Because of the switch to www, you also have some access control allow origin header errors: because of security settings, requests from non www are blocked when requested for www.
    If you add
    Header add Access-Control-Allow-Origin “*”
    to your .htaccess, that should allow these requests.

    As for search console and Google Analytics, here are some instructions how to set that up:
    https://really-simple-ssl.com/knowledge-base/how-to-setup-google-analytics-and-google-search-consolewebmaster-tools/

    #41336 Reply

    Andrea

    Hi, you wrote:
    “If you add
    Header add Access-Control-Allow-Origin ā€œ*ā€
    to your .htaccess, that should allow these requests.”

    Forgive me, but what do I have to write exactly in the .htaccess file?

    Thank you so much in advance.

    #41342 Reply

    Header add Access-Control-Allow-Origin "*"

    or

    Header set Access-Control-Allow-Origin "*"

    Should be added to your .htaccess to prevent these errors.

    #41373 Reply

    Andrea

    I had already found it on the internet, thank you very much.

    Now I’m looking for the right settings on Search Console, and Analytics.

    For the rest it seems that I’ve already solved myriad problems.

    It remains to understand why the JS that I call on that site page does not work anymore.

    #81892 Reply

    Andrei

    Andrea please contact me at id.bejan@gmail.com
    I have same problems.
    Maybe you can help me.
    THX!

    #82005 Reply

    Mark Wolters
    Keymaster

    Hi Andrei,

    what issues are you experiencing exactly?? If you can give us your site address we might be able to help you in troubleshooting the issue.

    Mark

    #84307 Reply

    Rana

    Hi, Can you please look into this site http://www.stablx.com the site is redirecting 10+ times(chorome), I tried contacting my hosting provider but they don’t seem to answer. Please Help.

Viewing 30 posts - 1 through 30 (of 31 total)
Reply To: 19 redirect :-(
Your information: