我正在使用以下规则重定向我的网址
Redirect 301 /crm /crm/applications
但是由于规则而产生的网址是
http://www.site_url.com/crm/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications/applications
如何解决这个问题?
最佳答案
改用 RedirectMatch,
RedirectMatch 301 ^/crm$ /crm/applications
它提供基于正则表达式的匹配,可以使用
^
和 $
anchor 帮助将特定模式归零。关于.htaccess - url 重定向无法正常工作,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/43625663/