Welcome! Log In Create A New Profile

Advanced

/dir/ rewrite to index.php

March 07, 2015 08:18AM
/dir/
обрабатывается так же как и корень
почему?

вот конфиг:



location / {
index index.php;
try_files $uri /index.php$is_args$args;
}

location ~ ^/(index)\.php(/|$) {
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;

include /etc/nginx/fastcgi_params;

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $uri;

}
Subject Author Posted

/dir/ rewrite to index.php

GTAlex March 07, 2015 08:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 106
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready