Redirection Error for 1 link

What is the name of the domain?

What is the error number?

None

What is the error message?

None

What is the issue you’re encountering

Redirect Error in Google Search Console

What steps have you taken to resolve the issue?

Part of the problem is solved when pausing cloudflare

What are the steps to reproduce the issue?

Hello,

in GSC am getting :
Redirect error
These pages aren’t indexed or served on Google
​https://boudoirphotography.mu/fr

When tested on seositecheckup.com, it says:
This URL performed 2 redirects! While redirects are typically not advisable (as they can affect search engine indexing issues and adversely affect site loading time), one redirect may be acceptable, particularly if the URL is redirecting from a non-www version to its www version, or vice-versa.

https://boudoirphotography.mu/fr > http://boudoirphotography.mu/fr/
http://boudoirphotography.mu/fr/ > https://boudoirphotography.mu/fr/

I haven’t put such a rule anywhere. Here’s my htaccess :

# RewriteOptions inherit

RewriteEngine on

# Redirect index.html to homepage
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^index\.html$ "https\:\/\/boudoirphotography\.mu\/" [R=301,L]

# Redirect www to non-www
RewriteCond %{HTTP_HOST} ^www\.boudoirphotography\.mu
RewriteRule ^(.*)$ "https\:\/\/boudoirphotography\.mu\/$1" [R=301,L]

# Start - to remove html in URL
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]
# End - to remove html in URL

# Start - Error 404
ErrorDocument 404 /404
# End - Error 404

When I Pause cloudflare and perform the test again, I get only error :
https://boudoirphotography.mu/fr > https://boudoirphotography.mu/fr/

This is the only link I’m getting this error.

Hey there,

From the description of the problem, it sounds like the issue is related to the SSL mode being used. If you were using SSL mode Flexible, then the request from Cloudflare to your origin server would be done using HTTP instead of HTTPS, which would explain the redirection error, as your origin is redirecting HTTP requests to HTTPS, creating a loop.

1 Like

Thanks moving from flexible to strict made the trick !

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.