The usage scenarios are as follows:
When visiting the http://www.ehotel.com/admin/admin/hycgl.html, jump to http://www.ehotel.com/admin/index.php/admin/hycgl.html;
When visiting the http://www.ehotel.com/, jump to http://www.ehotel.com/index.php/;
Nginx.confserver {Listen 80; server_name www.ehotel.com www.ehotel.com; Root "E:/phpstudy/www/ehotel"; Location/{index index.html index.htm index.php; #autoindex on; if (!-e $request _filename) {rewrite ^/(. *) $/index.php?s=$1 last; Break }} location/admin/{index index.html index.htm index.php; #autoindex on; if (!-e $request _filename) {rewrite ^/admin/(. *) $/admin/index.php?s=$1 last; #rewrite ^/Directory/(. *) $/directory/index.php/$1 last; Break }} Location ~ \.php (. *) $ {Fastcgi_pass 127.0.0.1:9000; Fastcgi_index index.php; Fastcgi_split_path_info ^ (? U). +\.php) (/?. +)$; Fastcgi_param script_filename $document _root$fastcgi_script_name;Fastcgi_param path_info $fastcgi _path_info; Fastcgi_param path_translated $document _root$fastcgi_path_info; Include Fastcgi_params; }}
Nginx under the hidden admin and current domain name under the index.php