Hi, I’ve added these rules:
server {
location / {
...
}
#Put our rewrite rules here, i.e.
rewrite wp-content/uploads(/_pda/.*\.\w+)$ "/index.php?pda_v3_pf=$1" last;
rewrite private/([a-zA-Z0-9-_]+)$ "/index.php?pda_v3_pf=$1&pdav3_rexypo=ymerexy" last;
}
Could you explain how does it work?
I set acces to protected files only for loggged-in users.
Protected files are available for users with urls like:
domain.com/wp-content/uploads/_pda/file.pdf
but I see that when I use url like:
domain.com/index.php?pda_v3_pf=/_pda/file.pdf
it also works (only for logged-in users)
I don’t see any rewrite.
Why? Am I doing something wrong?
-
This reply was modified 1 year, 9 months ago by
Paul.
-
This reply was modified 1 year, 9 months ago by
Paul.