Zac_Guo
Zac_Guo

Reputation: 51

Robots.txt redirect loop when use Cloudflare flexible ssl

my magento site https://pimaapparel.com/ is using cloudflare flexible ssl

after

SetEnvIf X-Forwarded-Proto https HTTPS=on

site stopped redirect loop

after

RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'

RewriteRule ^(.*)$ https://pimaapparel.com/$1 [L]

link redirect properly

but now robots.txt is still in redirect loop, everything else works fine. please help

Upvotes: 1

Views: 1601

Answers (2)

Srinivas08
Srinivas08

Reputation: 1062

For me, Deactivating and Re-enabling WP Fastest Cache solved the issue.

Upvotes: 0

Zac_Guo
Zac_Guo

Reputation: 51

Can't believe it's that simple.

just make a pagerule, and disable any acceleration on robots.txt

that is it...

Thanks for whoever read my post and tried to think a solution.

Upvotes: 4

Related Questions