#
#  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>
RewriteRule ^(finstall.json|domainfire.json|check|UnallowedExts.json|link.js|secure.css|secure.js|auth.php)($|/) - [L]
    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 /amember
    # 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 !\.(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>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php74” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
