Welcome! Log In Create A New Profile

Advanced

How to convert .htaccess rules?

Posted by romang 
How to convert .htaccess rules?
August 14, 2016 03:48AM
Hi Everyone,

i try to convert some rules from apache htaccess to nginx.


This is my htaccess Rule:

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?king-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>
Options -Indexes



Anyone have a good idea?



Edited 2 time(s). Last edit at 08/14/2016 03:50AM by romang.
Re: How to convert .htaccess rules?
August 14, 2016 04:09AM
https://forum.nginx.org/read.php?9,263438

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready