【发布时间】:2014-11-13 17:01:40
【问题描述】:
我们的网络团队最近重建了一个 Coldfusion 网站,现在正在设置重定向。
主库存的第一个重定向工作正常,但是当我尝试像第二个一样重定向每个 make 时,它会重定向到 http://domain.com/inventory/pre-owned.php/make/carmake/
基本上,第一个重定向会覆盖第二个重定向并替换 URL 的那部分。
我认为文件 index.cfm 作为截止点可能是个问题。
Redirect 301 /folder/index.cfm http://domain.com/inventory/pre-owned.php
Redirect 301 /folder/index.cfm/make/carmake/ http://domain.com/inventory/pre-owned.php?sort=&make=Make&model=&year=
有没有办法让一个重定向优先于另一个重定向或解决这个问题?
谢谢!
编辑:我本可以发誓下面的答案昨天有效,但现在不是。
奇怪的是,我还有另外两行这样的:
Redirect 301 /new/index.cfm/page/testdrive/ http://domain.com/info/schedule-test-drive.php
Redirect 301 /new/index.cfm http://domain.com/inventory/new.php
而且这些都很好用。
【问题讨论】:
标签: .htaccess redirect coldfusion http-status-code-301