<div dir="ltr"><div>try_files $uri $uri/ /index.php;<br><br></div>should work <br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 9, 2018 at 7:10 PM, ThanksDude <span dir="ltr"><<a href="mailto:nginx-forum@forum.nginx.org" target="_blank">nginx-forum@forum.nginx.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hey guys<br>
<br>
I tried the tools and it didn't worked for me.<br>
can u guys pls help me convert this to a nginx rules?<br>
<br>
<br>
RewriteEngine On<br>
<br>
#RewriteCond %{HTTPS} off<br>
#RewriteRule .* https://%{HTTP_HOST}%{REQUEST_<wbr>URI} [L,R=301]<br>
<br>
#RewriteCond %{HTTP_HOST} !^www\.<br>
#RewriteRule .* <a href="http://www." rel="noreferrer" target="_blank">http://www.</a>%{HTTP_HOST}%{<wbr>REQUEST_URI} [L,R=301]<br>
<br>
Options +FollowSymLinks<br>
Options -Indexes<br>
<br>
RewriteCond %{SCRIPT_FILENAME} !-d<br>
RewriteCond %{SCRIPT_FILENAME} !-f<br>
RewriteRule . index.php [L,QSA]<br>
<br>
<br>
<br>
# Performace optimization<br>
<br>
# BEGIN Compress text files<br>
<ifModule mod_deflate.c><br>
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain<br>
AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml<br>
application/xml<br>
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml<br>
application/atom+xml<br>
AddOutputFilterByType DEFLATE text/javascript application/javascript<br>
application/x-javascript application/json<br>
AddOutputFilterByType DEFLATE application/x-font-ttf<br>
application/x-font-otf<br>
AddOutputFilterByType DEFLATE font/truetype font/opentype<br>
</ifModule><br>
# END Compress text files<br>
<br>
# BEGIN Expire headers<br>
<ifModule mod_expires.c><br>
ExpiresActive On<br>
ExpiresDefault "access plus 5 seconds"<br>
ExpiresByType image/x-icon "access plus 31536000 seconds"<br>
ExpiresByType image/jpeg "access plus 31536000 seconds"<br>
ExpiresByType image/png "access plus 31536000 seconds"<br>
ExpiresByType image/gif "access plus 31536000 seconds"<br>
ExpiresByType application/x-shockwave-flash "access plus 31536000<br>
seconds"<br>
ExpiresByType text/css "access plus 31536000 seconds"<br>
ExpiresByType text/javascript "access plus 31536000 seconds"<br>
ExpiresByType application/javascript "access plus 31536000 seconds"<br>
ExpiresByType application/x-javascript "access plus 31536000 seconds"<br>
</ifModule><br>
# END Expire headers<br>
<br>
# BEGIN Cache-Control Headers<br>
<ifModule mod_headers.c><br>
<filesMatch ".(ico|jpe?g|png|gif|swf)$"><br>
Header set Cache-Control "public"<br>
</filesMatch><br>
<filesMatch ".(css)$"><br>
Header set Cache-Control "public"<br>
</filesMatch><br>
<filesMatch ".(js)$"><br>
Header set Cache-Control "private"<br>
</filesMatch><br>
<filesMatch ".(x?html?|php)$"><br>
Header set Cache-Control "private, must-revalidate"<br>
</filesMatch><br>
<br>
<filesMatch ".(woff|woff2|ttf|otf|eot)$"><br>
Header set Cache-Control "max-age=31536000 private, must-revalidate"<br>
</filesMatch><br>
</ifModule><br>
# END Cache-Control Headers<br>
<br>
Posted at Nginx Forum: <a href="https://forum.nginx.org/read.php?2,278046,278046#msg-278046" rel="noreferrer" target="_blank">https://forum.nginx.org/read.<wbr>php?2,278046,278046#msg-278046</a><br>
<br>
______________________________<wbr>_________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/<wbr>mailman/listinfo/nginx</a><br>
</blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><b>Anoop P Alias</b> <div><br></div></div></div></div>
</div>