• Resolved fotov60

    (@fotov60)


    I am using the QUIC.cloud CDN and wanted to know if any of its possible configurations could affect the domain redirects on my website.

    The canonical URL is https://www.fotov60.com, and I’m trying to achieve the following redirection using the .htaccess file:

    http://fotov60.com
    301 Moved Permanently
    https://www.fotov60.com/
    200 OK

    instead of

    http://fotov60.com
    301 Moved Permanently
    https://fotov60.com/
    301 Moved Permanently
    https://www.fotov60.com/
    200 OK

    The problem is that even though I add the following code:

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{HTTP_HOST} ^fotov60\.com$ [NC]
        RewriteRule ^(.*)$ https://www.fotov60.com/$1 [L,R=301]
    </IfModule>

    I’m still getting the following result:

    http://fotov60.com
    301 Moved Permanently
    https://fotov60.com/
    301 Moved Permanently
    https://www.fotov60.com/
    200 OK

    I contacted my hosting provider, and they mentioned that the CDN QUIC.cloud might be causing this intermediate redirection. Is this possible? If so, how can I resolve it?

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support qtwrk

    (@qtwrk)

    well , no really , the QC CDN will cache the redirection that is issued from original server, itself does NOT do any redirection

    RewriteEngine On
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteRule ^ https://www.fotov60.com%{REQUEST_URI} [R=301,L]

    try this rule , put it at top of your .htaccess

    this should redirect https:// , https:// and https://www to https:// at once.

    Thread Starter fotov60

    (@fotov60)

    Then with this code all will be redirected to https://www.fotov60.com at once?

    Plugin Support qtwrk

    (@qtwrk)

    yes

    Thread Starter fotov60

    (@fotov60)

    I have tried, but the result is the same. Can you think of any reason why this redirection might be enforced?

    http://fotov60.com
    301 Moved Permanently
    https://fotov60.com/
    301 Moved Permanently
    https://www.fotov60.com/
    200 OK
    Plugin Support qtwrk

    (@qtwrk)

    then it means something else did redirection BEFORE .htaccess does

    if you are using control panel , like cPanel , DirectAdmin , Plesk …etc , they have a vhost-level redirection setting would take place before .htaccess does

    Thread Starter fotov60

    (@fotov60)

    Yes I have cPanel but when I ask them to do the redirection in it, they say that

    From the "Redirects" section in cPanel, you can't make redirects from HTTP to HTTPS, so you would have to do it manually in your website's ".htaccess" file or by using a plugin.

    I dont know if is it true.

    Plugin Support qtwrk

    (@qtwrk)

    remove the rules you added in .htaccess, then try again , see if you still get redirection and what is the full response header , that will may indicate what did redirection or what did not do redirection

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘QUIC.cloud CDN affects domain redirects?’ is closed to new replies.