Unwanted redirect, how to solve it

Hello there!

I have a problem with my github page. If I request a file on my page, from Java, I got this response:

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

 I tried using the connection.setRequestProperty(String); method, but I still get the same response. And I can view the file from browser.

Hereis the specified file where I got the error.

I just use raw HTML and CSS for my tiny website, no Jekyll.

Please let me know that is there any solution to fix this

2 Likes

Hey @mrexplode,

Thank you for being here! We are happy you are here! Would you mind sharing a few more details might help someone give you a nudge in the right directions, a link to your repo would help?

Cheers,