Simple 301 Redirects
Redirects Not Working For PDFs (2 posts)

  1. petermjames
    Posted 1 year ago #

    The plugin redirects are not working for PDF files (with .pdf extensions).

    All other redirects are working fine.

    Is there any way to resolve this?

    Kind regards...Peter


  2. cthompson-cdi
    Posted 1 year ago #

    I had this problem as well and found that you cannot have special URL characters in the URL to redirect.

    If the file name has spaces such as
    file name 2.pdf then enter it as such in the URL.
    IE: http://my-site.com/downloads/file name 2.pdf.

    Using http://my-site.com/downloads/file$20name%203.pdf will not work.

    WordPress will actually change the name of a file upload to eliminate this problem in your media. WordPress adds a - in place of the space in the uploaded file if it detects a space. So check to make sure you have the actual file name stored in your media exactly as WordPress stored it so the pdf redirected to can be found (can cause 404's if not the same).

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple 301 Redirects
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.