The Cloudflare SSL seeems to be working as we can see “Connection is secure” on browser.
However, many URLs are showing 301 response status and causing ERR_TOO_MANY_REDIRECTS.
Also, it is not happening to all the URLs, which is the confusing part. E.g., https://<www.domain.in>/notices and all the microsites are showing this error whereas https://<www.domain.in> and https://<www.domain.in>/employment-notification/ are working fine.
Following is the content of our .htaccess file –
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{HTTP_HOST} !^www.
RewriteCond %{HTTPS}s on(s)|offs()
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [NE,L,R]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
# New 12:55 27-2-18
RewriteRule ^(.+)?/(wp-.*) /$2 [L]
RewriteRule . index.php [L]
</IfModule>
# Added on 29th Oct 2022 by bijay
php_value upload_max_filesize 64M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
Options -Indexes
# END WordPress