boonebgorges / buddypress-docs

GNU General Public License v3.0
106 stars 44 forks source link

2.0.x filter to disable url rewriting on attachment url #543

Closed pierre-dickinson closed 6 years ago

pierre-dickinson commented 8 years ago

Hi, is it possible to remove filter (or to create a new on) to disable attachment url rewriting rule? I've got some 404 after 302 redirection with this type of url '/?bp-attachment=myfile.pdf'

Thanks

boonebgorges commented 8 years ago

The bp-attachment redirect is part of the system that (at least under Apache) protects non-public files from being viewed by users without the proper permissions.

It would be possible to add a filter that disables this, but I'd like to be sure that the privacy aspects are documented properly.

I'm curious why you're getting 404s, and why disabling the redirects would fix the problem. It seems like the 404s might point to a different bug.

Did you mean to open this as a pull request? I'm not seeing any relevant commits (or even a fork on your account).