we moved our site out of development into production, and since that moment we get 404's for the documents.
The site was on new.mywebsite.be and now it's on www.mywebsite.be
After going through the support forum, we found the thread '404 error and permalinks are set up correctly'. We tried to apply the fix you suggested, but in the version we use (1.3.4) this fix was already in place. (you even refer to the mentioned thread in the code :-)
The 404 we get is a WordPress error. Not server or theme.
BUT.. In settings -> media, the Document Upload Directory contains the c: URL twice...
Like this : C:\Websites\www.mywebsite.be/C:\Websites\www.mywebsite.be\wp-content\uploads
When we try to put something more adequade, it keeps jumping to this...
Can we force this URL somewhere ?