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.
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.
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
-
This reply was modified 7 years, 1 month ago by briancrumley.