您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息
三六零分类信息网 > 双鸭山分类信息网,免费分类信息发布

nginx下tp如何配置路由重写

2025/6/23 18:16:14发布13次查看
index.php/api/sendems/sendcode.html
这个路径,apache可以加载.htaccess,进行路由重写
options +followsymlinks
rewriteengine on
rewritecond %{request_filename} !-d
rewritecond %{request_filename} !-f
rewriterule ^(.*)$ index.php/$1 [qsa,pt,l]
那nginx要怎么配置路由重写呢
回复内容: index.php/api/sendems/sendcode.html
这个路径,apache可以加载.htaccess,进行路由重写
options +followsymlinks
rewriteengine on
rewritecond %{request_filename} !-d
rewritecond %{request_filename} !-f
rewriterule ^(.*)$ index.php/$1 [qsa,pt,l]
那nginx要怎么配置路由重写呢
配置文件中增加
rewrite ^(.*)$ /index.php?s=$1 last;
双鸭山分类信息网,免费分类信息发布

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product