【发布时间】:2015-08-30 07:10:49
【问题描述】:
这是我的网址...
result.php?team=arsenal&player=ospina
我想要这个
mysite.com/virtualdirectory/arsenal/ospina.html
我试过这段代码..无法工作..未找到
RewriteRule ^(.*)/(.*)/(.*).html$ result.php?team=$2&player=$3 [L]
在此服务器上找不到请求的 URL /subfolder/arsenal/ospina.html。
Apache/2.2.8 (Win32) PHP/5.2.6 服务器在 localhost 端口 80
感谢您的帮助, 最好的问候!!
【问题讨论】:
-
你能提供更多细节吗?你的问题不清楚
-
样本字符串中没有
.html。 -
你的问题解决了吗?
标签: regex apache .htaccess url rewriting