I'm in the process of mirroring a website: https://matic.work

I tried wget on Windows 10 with different options and all of them return HTTP request sent, awaiting response... 404 Not Found 2019-04-04 06:49:57 ERROR 404: Not Found. for different links on the website.

The command I used is wgetdown>wget --recursive --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows https://matic.work

When I launch the local index file, the website properly displays for not even half of a second and then it shows 404 Error: This page could not be found.

What should I do?

  • 404 indicates that the server exists but tells you that the page(s) you attempted to fetch do not exist. Without seeing the precise command line you sent, we can only tell you that it's probably not lying. – tripleee Apr 4 '19 at 12:26
  • I tried to open this link on my browser and I got 404. I believe there is nothing in it... – Leonardo Alves Machado Apr 4 '19 at 12:26
  • @LeonardoAlvesMachado That's odd. That site is an uploaded mirror site. The actual site is https://matic.network I get the same error with the original site. – thenewcoder Apr 4 '19 at 12:30
  • You mean you manage to download the site but then when you open the page you have copied it redirects to a URL which is a 404? – tripleee Apr 4 '19 at 12:34
  • @tripleee Correct. The local copy shows the 404 error displayed on the page. I even used HTTrack and the same problem persisted. – thenewcoder Apr 4 '19 at 12:36

The site pulls in a heap of JavaScript, some of which probably contains a redirect. Try opening the page with JavaScript disabled. Works as designed.

  • Disable it through the browser or on my laptop in general? – thenewcoder Apr 4 '19 at 12:47
  • 1
    Just temporarily in your browser -- perhaps create a separate profile for testing, or even install a different browser just so you can play around. If installing a plugin is acceptable, NoScript gives you a great deal of control. – tripleee Apr 4 '19 at 12:48
  • Will try that and get back to you shortly. – thenewcoder Apr 4 '19 at 12:55
  • Great. That worked! – thenewcoder Apr 4 '19 at 21:21
  • one last question, if that local copy were uploaded to another domain, would that redirect error fix itself? Otherwise, I wouldn't be able to see it on that domain without disabling Javascript right? I'm just trying to make sure I 100% understand the root cause. – thenewcoder Apr 4 '19 at 21:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.