Forum | Really Simple SSL

19 redirect :-(

Home Forums Redirect loops 19 redirect :-(

  • This topic is empty.
Viewing 30 posts - 1 through 30 (of 31 total)
  • Author
  • #41010

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

    My site is

    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


    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.


    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:

    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.


    the url correct fot the javascript

    This is the url of the Javascript:


    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:

    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.


    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 (( – Italiano, – 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.


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

    the page is:

    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
    noleggio-auto-300_2.html:15 GET 404 ()
    noleggio-auto-600.html:12 GET 404 ()
    noleggio-auto.html:12 GET 404 ()


    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.


    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 “;.
    XHR finished loading: GET “;.
    send @
    ajax @
    receiveMessage @ (index):269
    (anonymous) @ (index):275
    dispatch @
    r.handle @
    (index):269 XHR finished loading: GET “;.
    send @
    ajax @
    receiveMessage @ (index):269
    (anonymous) @ (index):275
    dispatch @
    r.handle @
    (index):269 XHR finished loading: GET “;.


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


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

    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.


    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 ‘; was loaded over HTTPS, but requested an insecure stylesheet ‘ -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.


    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.

    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:

    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.


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


    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:

    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
    <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/ "access plus 1 month"
    # CSS and JavaScript
      ExpiresByType text/css                  "access plus 1 year"
      ExpiresByType application/javascript    "access plus 1 year"
    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
    ## END Enable GZIP Compression ##
    <FilesMatch "!\.(gif|jpe?g|png)$">
    php_value session.cookie_domain
    <FilesMatch "wp-login.php">
    Deny from All
    ErrorDocument 403 "Forbidden"
    ## BEGIN Vary: Accept-Encoding Header ##
    <IfModule mod_headers.c>
    <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
    ## 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 mod_headers.c>
    Header set Connection keep-alive
    Header set Expires "max-age=A2592000, public"
    Header unset ETag
    # 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/ .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/ .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/ .mpp
        AddType application/x-font-otf .otf
        AddType application/ ._otf
        AddType application/vnd.oasis.opendocument.database .odb
        AddType application/vnd.oasis.opendocument.chart .odc
        AddType application/vnd.oasis.opendocument.formula .odf
        AddType application/ .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/ .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/ ._ttf
        AddType audio/wav .wav
        AddType audio/wma .wma
        AddType application/ .wri
        AddType application/font-woff .woff
        AddType application/font-woff2 .woff2
        AddType application/ .xla .xls .xlsx .xlt .xlw
        AddType application/zip .zip
    <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/ 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/ A31536000
        ExpiresByType audio/midi A31536000
        ExpiresByType video/quicktime A31536000
        ExpiresByType audio/mpeg A31536000
        ExpiresByType video/mp4 A31536000
        ExpiresByType video/mpeg A31536000
        ExpiresByType application/ A31536000
        ExpiresByType application/x-font-otf A31536000
        ExpiresByType application/ A31536000
        ExpiresByType application/vnd.oasis.opendocument.database A31536000
        ExpiresByType application/vnd.oasis.opendocument.chart A31536000
        ExpiresByType application/vnd.oasis.opendocument.formula A31536000
        ExpiresByType application/ 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/ 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/ A31536000
        ExpiresByType audio/wav A31536000
        ExpiresByType audio/wma A31536000
        ExpiresByType application/ A31536000
        ExpiresByType application/font-woff A31536000
        ExpiresByType application/font-woff2 A31536000
        ExpiresByType application/ A31536000
        ExpiresByType application/zip A31536000
    <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/ application/x-msdownload image/x-icon image/webp application/json application/ application/ application/x-font-otf application/ application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/ application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/ image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/ audio/wav application/ application/font-woff application/font-woff2 application/
        <IfModule mod_mime.c>
            # DEFLATE by extension
            AddOutputFilter DEFLATE js css htm html xml
    <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/"
    <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/"
    <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/"
    <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
    # 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]
    # 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]
    # END W3TC FeedBurner
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    # 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]
    # END rlrssslReallySimpleSSL
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
    # 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

    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.


    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.


    aFor all these redirects, I’ve solved the solution I submitted from a user to another post on, 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:

    That here:

    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:

    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:

    It opens it correctly and I can see javascript content

    It is obviously an encrypted javascript.


    the link correct:

    But if I enter the javascript url in the browser, for example:

    Sorry but Google Translate makes the whims.


    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.


    Great it’s solved.

    For that javascript, I get this error:

    Uncaught SyntaxError: Unexpected identifier

    Which does not seem connected to your SSL migration.


    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.


    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:


    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.


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


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

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


    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.


    Andrea please contact me at
    I have same problems.
    Maybe you can help me.


    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.



    Hi, Can you please look into this site 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)
  • The topic ‘19 redirect :-(’ is closed to new replies.

Join our mailing list - 8 Tips & Tricks in your inbox over the next 8 weeks!

Integrate with Really Simple SSL

Really Simple SSL offers a Free SSL Certificate from Let’s Encrypt. Do you want to integrate with Really Simple SSL as a hosting provider? Let us know!

Choose the answer that most closely resembles your proposed integration. Additional information can be entered below.
After sending the form. The pop-up will close automatically.