"P. Jansen" <[email protected]> writes:

> Hi,
>
> Whenever my target domain responds with a redirect (301 or 302) to
> another domain (that is not in the -D directive), wget still downloads
> the contents of the new location URL. Wget does not follow links or
> page requisites from that new location. Even when explicitly setting
> --exclude-domains
> this behaviour occurs.
>
> Is this a bug, a feature or am I doing something wrong?

that is correct, the redirect is followed even if the location domain is
not specified with -D.
Both --domains and --exclude-domains are checked with links that are
generated by wget when recursively fetching a web page.
In other words, while the first URL is retrieved as effect to a HTTP
redirect, wget shouldn't follow any other link to the new domain, that
would be a bug.

Giuseppe

Reply via email to