Lately, across a few of my websites, I have been getting some bizarre behaviour. Loading a page will instead display the html code in text format. It begins with
0<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>301 Moved Permanently</title> </head><body>
It then proceeds to tell me that where it has moved to is the exact address that is showing in the address bar. If I click in the address bar and hit Enter, it will load the page properly. What?
In most cases, the originating link was pointing to the wrong address and was previously corrected and re-directed by the magic of WordPress. Now it's not correcting and re-directing, it's just showing this jumble of text.
I thought I had fixed it the other day by doing a search & replace and fixing all the incorrect links. But now I notice that even some correct links are showing that.
Here's an example you can follow:
Go to http://www.canadianclassicrock.com/artist-roster/ and click on Holly Woods & Toronto (bottom right).
This will show the proper page.
Go to http://www.canadianclassicrock.com/on-tour/ and click on Holly Woods & Toronto, at the top of the list.
This is supposed to go to the same page as above, but instead it shows the html of the 301 error page.
If you right-click the link (on the On Tour page) and Copy Link Location and paste it into the address bar, it works.
(This happens in Firefox and Chrome, but Internet Explorer shows the page properly, without the html display.)
So ... what's wrong? How do I fix it?