我有这样的网址
http://www.mysite.com/one/two/nearly_anything#!0lJ_PghzRwHtOyL3BkSouCFVh61mV_I0ZUPSipZDKPFW9xc
我需要通过 .htaccess 文件从中获取 hasbang 以便将其重写为
http://www.mysite.com/index.php?dbid=0lJ_PghzRwHtOyL3BkSouCFVh61mV_I0ZUPSipZDKPFW9xc
这就是我的 .htaccess 中的内容:
RewriteRule one/two/[a-zA-ZÄÜÖäüö\-\+]+#!(.*)$ /index.php?dbid=$1 [QSA]
如果我调用第一个 URL,我会得到 404 未找到。当我将编码的 dbid 放入 index.php?dbid=0lJ_PghzRwHtOyL3BkSouCFVh61mV_I0ZUPSipZDKPFW9xc 的直接调用中时,脚本会按预期运行。因此错误必须在我的 .htaccess 重写中,但我看不到它...... :-(
任何想法为什么?