Quantcast
Channel: Nginx Forum
Viewing all articles
Browse latest Browse all 53287

Need help to convert .htaccess to nginx rules

$
0
0
[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 .

Viewing all articles
Browse latest Browse all 53287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>