• I’m migrating an HTML site and I realized that I also need to include a large number of archival PDFs. It would make my life much easier if the link address could stay the same for those downloads. I thought I might be able to include a folder with the same name that the current folder has in the ‘uploads’ folder, but when I try to access the PDF I’m experimenting with, I get a message that the file is not available. Is this possible at all? If not, is there another way to do it that won’t take hours. I’m hoping I don’t have to go through and rename 150+ links throughout the archive.

Viewing 5 replies - 1 through 5 (of 5 total)
  • What is the URL that you are receiving a message that the file is not available?

    Thread Starter berkaa

    (@berkaa)

    I set up a test on my own site. It takes me to the “correct” address, but it’s the error message rather than the PDF itself that comes up.

    https://kls-design.net/downloads/kls-resume.pdf

    Please verify that the “downloads” folder is in the domains root directory, and not the hosting accounts web root directory (unless that is your domains root directory).

    Also please verify that you have spelled the “downloads” folder properly. Sometimes it’s just a simple mistake like a spelling error.

    Thread Starter berkaa

    (@berkaa)

    I must have misread. I thought I read it had to be within the wp-content folder. That worked! You just made my day. Thanks so much!!

    No problem. If you don’t want anyone to view the contents/file list of the folder, (yoursite.com/downloads/) you need to add this line to the .htaccess file in the domains root directory.

    Options -Indexes

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Migrating PDFs’ is closed to new replies.