![wget은 .de 도메인에서는 작동하지만 .com에서는 작동하지 않습니다.](https://linux55.com/image/192779/wget%EC%9D%80%20.de%20%EB%8F%84%EB%A9%94%EC%9D%B8%EC%97%90%EC%84%9C%EB%8A%94%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%EB%A7%8C%20.com%EC%97%90%EC%84%9C%EB%8A%94%20%EC%9E%91%EB%8F%99%ED%95%98%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
브라우저에서 이 웹사이트를 열면http://www.montratec.com/
자동으로 다음으로 변경됩니다.https://www.montratec.de/de/
웹사이트에서 파일을 다운로드하고 싶습니다.http://www.montratec.com/wget 및 원시 링크를 사용하십시오. 내가 이것을 시도하면 :
wget -A pdf -m -p -E -k -K -nd www.montratec.com
아무것도 다운로드되지 않고 빠르게 종료됩니다.
--2021-07-10 10:36:55-- http://www.montratec.com/
Resolving www.montratec.com (www.montratec.com)... 134.119.247.151
Connecting to www.montratec.com (www.montratec.com)|134.119.247.151|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.montratec.de/ [following]
--2021-07-10 10:36:55-- https://www.montratec.de/
Resolving www.montratec.de (www.montratec.de)... 134.119.247.151
Connecting to www.montratec.de (www.montratec.de)|134.119.247.151|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://www.montratec.de/de/ [following]
--2021-07-10 10:36:56-- https://www.montratec.de/de/
Reusing existing connection to www.montratec.de:443.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html.tmp.html’
index.html.tmp.html [ <=> ] 104.09K --.-KB/s in 0.09s
Last-modified header missing -- time-stamps turned off.
2021-07-10 10:36:56 (1.15 MB/s) - ‘index.html.tmp.html’ saved [106585]
Removing index.html.tmp.html since it should be rejected.
FINISHED --2021-07-10 10:36:56--
Total wall clock time: 1.0s
Downloaded: 1 files, 104K in 0.09s (1.15 MB/s)
Converted links in 0 files in 0 seconds.
그런데 .de 확장자를 사용하여 동일한 명령을 실행하면 작동하고 콘텐츠를 다운로드하는 것 같습니다.
wget -A pdf -m -p -E -k -K -nd www.montratec.de
모든 도메인을 자동으로 확인하도록 명령을 수정할 수 있습니까? 원래 .com 링크를 계속 사용하고 싶습니다.