我有一个包含这些内容的 .htaccess 文件:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([^/\.]+)$ index.php?string=$1&match=all [L]
所以当我输入: domain.com/test 页面重定向到domain.com/index.php?string=test&match=all
但是如果我想访问这个页面:domain.com/test#sub1
页面重定向到domain.com/index.php?string= test &match=all
而不是domain.com/index.php?string= test#sub1 &match=all
我该如何进行?