Apache To Nginx Web Server
Ahmet Selami
ahmetselmi at gmail.com
Sat Jun 14 14:35:14 UTC 2014
Hello,
I want to change my Web Server from Apache to Nginx, but i have a
configuration error with this server. I want to change the rewrite module
inside .htaccess, shown below, as nginx configuration rewrite module. Can
you help me how i change this module as nginx rewrite module? What is the
converted nginx module of this apache rewrite module?
Thanks,
Have a good day.
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20140614/eb062ac8/attachment.html>
More information about the nginx
mailing list