#
#  aMember Pro .htaccess file
#  If your webhosting has Nginx webserver running instead of Apache,
#  check installation instructions on our website:
#       https://www.amember.com/docs/Nginx
#
<IfModule rewrite_module>
    RewriteEngine on
# You may need to uncomment the following line if rewrite fails to work
# RewriteBase must be setup to base URL of your aMember installation without
# domain name
    RewriteBase /
    # Workaround for a bug introduced in Apache 2.4.18 (caused endless loop)
    RewriteCond %{ENV:REDIRECT_STATUS} 200
    RewriteRule .* - [L]
    # Continue to normal aMember rules
    RewriteRule ^public public.php [L]
    RewriteRule ^js.php js.php [L]
    RewriteRule !\.(avif|js|ico|gif|jpg|png|css|swf|csv|html|pdf|woff|woff2|ttf|eot|svg|css.map|js.map)$ index.php
</IfModule>

<IfModule php5_module>
php_value auto_prepend_file none
#  php_flag magic_quotes_gpc off
</IfModule>

<IfModule php7_module>
php_value auto_prepend_file none
#  php_flag magic_quotes_gpc off
</IfModule>

<IfModule php_module>
php_value auto_prepend_file none
#  php_flag magic_quotes_gpc off
</IfModule>