Nginx rules
-
(I previously posted in a resolved topic, sorry !)
Hello !
I have the same issue as alex60.
I am looking for a translation of this configuration for Nginx.
Do you think you can help me for that ?
# BEGIN MINIORANGE MEDIA RESTRICTION
RewriteCond %{REQUEST_FILENAME} ^.*(png|jpeg|jpg|gif|bmp|pdf|doc|mp4)$ [OR]
RewriteCond %{REQUEST_URI} protectedfiles
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
RewriteRule ^(.*)$ ./wp-login.php?redirect_to=$1 [R=302,NC]# END MINIORANGE MEDIA RESTRICTION
Thanks !
GavyGavy.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Nginx rules’ is closed to new replies.