Need help to convert .htaccess to nginx rules

onel0ve nginx-forum at nginx.us
Tue Mar 5 17:39:33 UTC 2013


[code]<Files *.htm>
#Compress
SetOutputFilter DEFLATE
</Files>
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
# please use .php at url for admin
RewriteRule ^recent-articles-feed rss.php [NC]
RewriteRule ^rss/([^/]+) rss.php?q=$1 [NC]

# To ignore htaccess - enlist here
RewriteCond $1
!^(index\.php|ftpservice|demo|ftpdb|MDF|phpsysinfo|admin|templates|links|api|forum|articles|imageGallery|language|includes|ajax|resources|fonts|images|parse|directory|uploads|system|rss\.php|robots\.txt|sitemap\.php|Sitemap\.xml|sitemap\.xml|sitemap2\.xml|urllist\.txt)


RewriteRule ^(.*) index.php [NC] [/code]


This is my htaccess content .

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,236960,236960#msg-236960



More information about the nginx mailing list