wget and redirects
How can I use wget to download the content of a webpage, including images, from a link that is a redirect.

For example, if the domain is www.domainname.com and the index.html is located in www.domainname.com/en/index.html, I only get the HTML file downloaded, not the images.
If I use the entire path (www.domainname.com/en/index.html) wget downloads the html and the images.

This is the command I'm using:wget -p --convert-links  http://domainname.com

Any ideas?


wget and redirects
===

How can I use wget to download the content of a webpage, including images, from a link that is a redirect.

For example, if the domain is www.domainname.com and the index.html is located in www.domainname.com/en/index.html, I only get the HTML file downloaded, not the images.
If I use the entire path (www.domainname.com/en/index.html) wget downloads the html and the images.

This is the command I'm using:wget -p --convert-links  http://domainname.com

Any ideas?

