My Nginx conf file:
location / {
try_files $uri $uri/ /index.php?url=$uri;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include /etc/nginx/fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Try the following url http://example.org/login::
expected behavior:
http://example.org/index.php?url=login
actual behavior:
http://example.org/index.php?url=/login
source
share