Support » Plugin: Redirection » Redirects from /wp-content/uploads/

  • Is there an issue with creating redirects for files within the uploads folder? I’m trying to add redirects from /wp-content/uploads/ to /pdf but I’m not being redirected. There are already a bunch of working redirects in place so I don’t think it has to do with the syntax.

    I suppose I could add it to the .htaccess file myself but I’d like to try avoiding that.

    Any help is greatly appreciated!

    https://wordpress.org/plugins/redirection/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mcondave

    (@mcondave)

    I figured something out if anyone is interested. It seems the plugin would only redirect non-existent PDFs. I’m not sure if it had to do with the site serving up the 404 page rather than a PDF, but after implementing redirects, I modified some PDF names and I was successfully redirected. There’s a lot more manual work involved but at least I can get the desired results now. Also, be mindful of browser caching if you are trying to get the same type of redirects working.

    Plugin Author John Godley

    (@johnny5)

    Redirection only runs when a request goes through WordPress. If you are trying to redirect an existing file then Apache will likely have a rule which serves the file up first before passing the request onto WordPress. With a non-existent file it will pass it on to WordPress.

    I just loaded a PDF into a WordPress media library. Then deleted it. Then created a redirection from that deleted source file “/socialwork/files/2017/02/Online-MSW-Map-Reg-Full-Time-Test.pdf” to the target source in another domain “https://online.boisestate.edu/wp-content/uploads/2016/11/Online-MSW-Map-Reg-Full-Time.pdf” and it did not work like Mr. Godley said a non-existent file redirect should work.
    Mr. Godley – can you help me out? Please? Or maybe someone else who knows how to make this work?
    I am not a web developer, so hopefully, it can be explained in simple terms for me.
    Thanks in advance for any help.

    briancrumley

    (@briancrumley)

    I’m having the same issue as @jbre mentioned above. I deleted the PDF as others have suggested but I am still getting a 404 error even after clearing caches. Any specifics on how to address this would be appreciated, @johnny5.

    Brian

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirects from /wp-content/uploads/’ is closed to new replies.