php - Nginx Laravel Route as Codeigniter -


i have laravel 5 project, staffs information can access testing.com/staffs, want change url testing.com/test/index.php/staffs, have tried laravel route group using "test/index.php/", laravel did not support "dot" in route, how can that?

the following part of 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;         }     } 

i think rickard smith might right!! following code

location / {         try_files $uri $uri/ /index.php?$query_string;     }  location ~ \.php$ {     fastcgi_split_path_info ^(.+\.php)(/.+)$;     fastcgi_pass    127.0.0.1:9006;     fastcgi_index index.php;     include /etc/nginx/fastcgi_params;     fastcgi_param script_filename $document_root$fastcgi_script_name;      fastcgi_intercept_errors off;     fastcgi_buffer_size 16k;     fastcgi_buffers 4 16k;     fastcgi_connect_timeout 300;     fastcgi_send_timeout 300;     fastcgi_read_timeout 300; } 

then can use route group prefix "dot" now, rickard smith , shempignon help!!


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -