问题:
如何在.htaccess中重定向以下行:
Redirect 301 /reizen.asp?type=ind http://domain.com/individuele-reizen
Redirect 301 /reis.asp?reisID=169 http://domain.com/individuele-reizen/oostenrijk/tirol-karinthie
我一直在想:错误:
The requested URL /reis.asp was not found on this server.
对堆栈溢出进行搜索没有帮助。
我在Windows2003服务器上的IIS6上使用iirf。我们有以下代码来显示干净的urls并删除任何查询字符串:
RewriteRule ^/(.+)\?(.+)&(.+)\.(htm)$ /$1
RewriteRule ^/(.+)\?(.+)$ http://betatest.bracknell-forest.gov.uk/$1 [R=301]
# Redirect to ASP if it exists.
# e.g. example.com/foo will display the contents of example.com/foo.asp
R