Sucuri SiteCheck says I have a URL with a redirect loop on my WordPress site at [https://mysite.com/.git/HEAD]). A visual check of file manager shows no folder called .git or a file anywhere called HEAD.
Of course, this could be created programmatically, and so I zipped and downloaded the entire site to my local PC, unzipped it there, and looked for referenes to .git (of which there are hundreds, mostly references to author pages). I see no reference at all to “HEAD” in the code.
How can I debug this?
I cannot deactivate the plugins for testing since this is a live site…and I don’t want to make a dev site public because I don’t want Google to index a dev site.
Where do I go from here?
[ad_2]
How are you trying to view the directory? In unix files/folders starting with . are hidden s that might be part of the issue.
Otherwise if you are certain it does not exist, you’ll want to start debugging the mentioned redirect itself. Sometimes the response headers will give you a clue, but failing that you may need to look at your htaccess or other related configs for your webserver.