.htaccess 文件

RewriteEngineOnRewriteCond%{REQUEST_FILENAME}f [OR]RewriteCond%{REQUEST_FILENAME}d [OR]RewriteCond%{REQUEST_FILENAME}l RewriteRule.[NC,L]RewriteRule. index.php [NC,L]

Nginx

location /{ index index.php index.html index.htm;if($request_uri ~(.+?\.php)(|/.+)$) { break; } if (!-e $request_filename) { rewrite ^/(.*)$ /index.php/$ last;}} location ~^/shopadmin { rewrite ^/(.*)$ /index.php/$ last;break;}if ( $host != pay.demo.com.cn ){ rewrite ^/(.*)$ http://pay.demo.com.cn/$1 permanent; }

发表回复

您的电子邮箱地址不会被公开。