【发布时间】:2023-03-15 12:04:01
【问题描述】:
我有:
RewriteCond %{HTTP_HOST} ^my.domain.com$ [NC]
RewriteRule ^(.*)$ index.php?q=search&keyword=$1
输入:
my.domain.com/foo_bar
我想要:
index.php?q=search&keyword=foo_bar
但事实上:
index.php?q=search&keyword=index.php
我不明白为什么。请帮帮我!
【问题讨论】:
标签: .htaccess mod-rewrite backreference