WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. petermjames
    Member
    Posted 5 months 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

    https://wordpress.org/plugins/simple-301-redirects/

  2. cthompson-cdi
    Member
    Posted 2 months 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).

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.