扫码关注官方订阅号
各位大神,在apache中如何将
http://www.test.com/aa/bb/cc的请求转发到
http://www.test.com/index.php...
不是跳转哦
请各位大神指教一下啦,通过.htaccess文件的方式
<IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+)/(.+)/(.+)$ index.php?var1=$1&var2=$2&var3=$3 [L] </IfModule>
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
扫描下载App
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部