Welcome! Log In Create A New Profile

Advanced

Re: .htaccess

Francis Daly
June 30, 2020 05:52AM
On Sat, Jun 27, 2020 at 06:49:51PM -0300, Zonimi wrote:

Hi there,

> Hello, I would like to know how do I convert this to nginx;
>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> RewriteCond %{REQUEST_URI} !(/$|\.)
> RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]
>
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
>
> RewriteRule . index.php [L]
> </IfModule>

Can you describe how you want requests to be handled? It's not immediately
clear to me what that apache config is trying to do.

> Already tried;
>
> location / { try_files $uri $uri/ /index.php; }

That looks like it is probably the "standard" close-enough equivalent;
but obviously some part of it does not work in this case.

> And none works

What request do you make?
What response do you get?
What response do you want to get instead?

Thanks,

f
--
Francis Daly francis@daoine.org
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

.htaccess

Zonimi June 27, 2020 05:52PM

Re: .htaccess

Francis Daly June 30, 2020 05:52AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 163
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