Ich habe ein Laravel 5-Projekt, die Mitarbeiterinformationen können von testing.com/staffs zugegriffen werden, aber ich möchte die URL zu testing.com/test/index.php/staffs ändern, die ich habe versuchte die Laravel Route Gruppe mit "test/index.php /", aber Laravel nicht unterstützt "Punkt" in Route, Wie kann ich das tun?Nginx Laravel Route als Codeigniter
folgende ist mein Teil nginx.conf
location/{
try_files $uri $uri/ /index.php?$args;
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
expires max;
}
location ~ [^/]\.php(/|$) {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_pass 127.0.0.1:9006;
fastcgi_index index.php;
include /etc/nginx/fastcgi_params;
}
}
Sie scheinen 'fastcgi_split_path_info^(. +? \. Php) (/.*) $;' zu fehlen. Siehe [dieses Dokument] (https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/). –
Haben Sie versucht, Ihrer Route einen Präfix zuzuordnen? \t 'Strecke :: Gruppe ([ 'Präfix' => 'test/index.php'], function() { \t \t/* hier Ihre Route ... */ \t});' – shempignon
shempignon: Laravel hat den Punkt im route :: group-Präfix nicht unterstützt – Geeks