Unable to access website with the “WWW” prefix

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:

Read More

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?

Related posts

1 comment

  1. Make .htaccess file and add following code then save to your public_html folder in your web host.

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
    

Comments are closed.