Yesterday, I was editing PHP files and setting up a proper child theme implementation. At one point, I did something rendering the whole site unloadable (an error in the PHP code which broke everything, though I’m still not sure what was the issue).
I reverted files I edited to the original Theme’s code, then created new child-theme files, and everything works fine now, except one last issue:
I can’t access the website via “www.themindofsteel.com”. If I enter the domain without the www prefix, everything loads fine.
From what I could tell, the problem seems to be local; test on Down For Everyone or Just Me? shows that it’s all fine. For me, however, most browsers (Chrome, Opera, Safari, Edge) will return a blank page, and sometimes open the page normally on refreshing. Sometimes refreshing doesn’t do a thing.
In Firefox, for example, I’m able to open the link normally the first time, but if I enter the same thing in another tab, it returns a blank page (no page title, no source code).
I tried logging out/logging in, clearing website cache, clearing local cache. The problem persists whether I am logged in or logged out.
I’m really baffled by this and don’t know what might be causing this. Can anyone replicate the issue? How can I fix this?
Make .htaccess file and add following code then save to your public_html folder in your web host.