Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 2

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:

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

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


Here is 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

1 Reply
Community Manager
Message 2 of 2

Re: Unwanted redirect, how to solve it

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?




Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!