How can I convert my below .htaccess (Apache) file so that it can be used by NGINX?
Options -Indexes
Options +FollowSymLinks
FileETag none
ExpiresActive on
ExpiresDefault A2592000
Header append Cache-Control "public"
AddOutputFilterByType DEFLATE text/html text/plain text/css text/xml application/x-javascript text/javascript application/javascript application/json
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} ^/signup/?
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
RewriteRule ^signup/([A-Za-z]+)/?$ /signup/index.php?account_type=$1 [NC,L]
RewriteRule ^home/([0-9]+)/?$ home.php?home_id=$1 [NC,L]
RewriteRule ^homes/([0-9]+)/?$ home.php?home_id=$1 [NC,L]
ServerSignature Off
source
share