Converting Apache Htaccess to nginx

06/30/2016 19:59 Venipa#1
Convert Apache Htaccess to nginx's config
<Directory "download/">
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</Directory>
Could someone convert it i cant because ill do this wrong :/
07/01/2016 18:03 krosswarrior#2
[Only registered and activated users can see links. Click Here To Register...]
07/01/2016 18:11 Venipa#3
Quote:
Originally Posted by krosswarrior View Post
[Only registered and activated users can see links. Click Here To Register...]
i already visited websites like that but it didnt worked.
07/01/2016 18:24 krosswarrior#4
According to [Only registered and activated users can see links. Click Here To Register...] you just need
PHP Code:
location / {
    
try_files $uri $uri/ /index.php?$args;

Obviously change the path after location.
07/02/2016 00:35 Venipa#5
Quote:
Originally Posted by krosswarrior View Post
According to [Only registered and activated users can see links. Click Here To Register...] you just need
PHP Code:
location / {
    
try_files $uri $uri/ /index.php?$args;

Obviously change the path after location.
well i fixed it somehow
Code:
location /download/ {
    try_files $uri $uri/ /download/index.php?$args;

    }
replaced /index.php?$args;
with /download/index.php?$args;