Title: Nginx rules
Last modified: April 4, 2020

---

# Nginx rules

 *  Resolved [gavy1](https://wordpress.org/support/users/gavy1/)
 * (@gavy1)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/nginx-rules/)
 * (I previously posted in a [resolved topic](https://wordpress.org/support/topic/rules-for-nginx-server/),
   sorry !)
 * Hello !
 * I have the same issue as [alex60](https://wordpress.org/support/topic/rules-for-nginx-server/).
 * 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 !
    Gavy
 * Gavy.

Viewing 1 replies (of 1 total)

 *  Plugin Author [miniOrange](https://wordpress.org/support/users/cyberlord92/)
 * (@cyberlord92)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/nginx-rules/#post-12636312)
 * Hi Gavy,
 * Thanks for reaching out to us.
 * Could you please send the request from the plugin’s support form? So that we 
   can set up a screen share meeting to check the rules and write it for the NGINX
   server as well.
 * Let us know if you have any questions or concerns. We’d be happy to help you.
 * Thank you
    Team miniOrange

Viewing 1 replies (of 1 total)

The topic ‘Nginx rules’ is closed to new replies.

 * ![](https://ps.w.org/prevent-file-access/assets/icon-128x128.png?rev=2154375)
 * [Prevent Files / Folders Access](https://wordpress.org/plugins/prevent-file-access/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prevent-file-access/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prevent-file-access/)
 * [Active Topics](https://wordpress.org/support/plugin/prevent-file-access/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prevent-file-access/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prevent-file-access/reviews/)

## Tags

 * [nginx](https://wordpress.org/support/topic-tag/nginx/)

 * 1 reply
 * 2 participants
 * Last reply from: [miniOrange](https://wordpress.org/support/users/cyberlord92/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/nginx-rules/#post-12636312)
 * Status: resolved