url 重定向无法正常工作
url redirect not working properly
我正在使用以下规则重定向我的 url
Redirect 301 /crm /crm/applications
但是由于规则的结果 url 是
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 301 ^/crm$ /crm/applications
它提供基于正则表达式的匹配,可以帮助使用 ^
和 $
锚点对特定模式进行归零。
我正在使用以下规则重定向我的 url
Redirect 301 /crm /crm/applications
但是由于规则的结果 url 是
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 301 ^/crm$ /crm/applications
它提供基于正则表达式的匹配,可以帮助使用 ^
和 $
锚点对特定模式进行归零。