October 31, 2011 01:35AM
Hi All,

I have a WP plugin and one of the futures is locking down the folder based on access level of the member. But they only support .htaccess / Apache.

I don't want to scrap my nice NGINX installation for this problem. Can you any of you help me in converting the following .htaccess files to nginx config?

Thanks,

=====

each folder has a .htaccess file and they are as follows

/files/Silver/.htaccess

Options FollowSymLinks
RewriteEngine on
#RewriteCond %{REQUEST_URI} ^Silver/*
RewriteRule ^(.*)$ /index.php?wlmfolder=Silver&restoffolder=$1 [L]




/files/Gold/.htaccess

RewriteEngine on
#RewriteCond %{REQUEST_URI} ^Silver/*
RewriteRule ^(.*)$ /index.php?wlmfolder=Gold&restoffolder=$1 [L]



/files/Platinum/.htaccess

RewriteEngine on
#RewriteCond %{REQUEST_URI} ^Silver/*
RewriteRule ^(.*)$ /index.php?wlmfolder=Platinum&restoffolder=$1 [L]
Subject Author Posted

Apache .htaccess to Nginx rewrite

morayi October 31, 2011 01:35AM

Re: Apache .htaccess to Nginx rewrite

António P. P. Almeida October 31, 2011 11:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 216
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready