I need some help: I was trying to fix an issue on my Wordpress website. The problem was that some of my pages were returning no padlock “not secure” red icon, when I was typing the address without https://
I am using cyberpanel on oracle free tier, I was trying to fix the problem myself. I was messing with the rewrite rules and the host conf inside the cyberpanel webadmin and now my website cannot be accessed with ERR_TOO_MANY_REDIRECTS. I don’t know what to do. Can anybody tell me how can I resolve this problem? See attached file which files I messed up.
Thanks for your help (server enthusiast here, but not much experience)
p.s. this is what I put in vhost cof file for rewrite, as stated in the web article.
rewrite {
enable 1
rules <<<END_rules
rewriteFile /home/example.com/public_html/.htaccess
END_rules
}
The website was inaccessible, it showed the error webpage inaccessible ERR_TOO_MANY_REDIRECTS.
But I solved it now. It was a problem in one of the rewrite rules in the Rewrite Rules, I actually needed to add / in the line for one of the three default rules, RewriteRule ^/(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Now, not only my website is accessible, but there is no more mixed content! Wooohooo