【发布时间】:2011-05-01 20:07:03
【问题描述】:
我正在尝试使用创建临时 URL 的重定向
Redirect Permanent /dir/subdir http://www.domain.com/other_dir/htmlfile.html
请注意,文件结构中存在“dir”,但“subdir”不存在。
如果我在浏览器中输入http://www.domain.com/dir/subdir,重定向会起作用(尽管“subdir”不存在),但http://www.domain.com/dir/subdir/ 返回 404。
基本上我想创建一个 fake 重定向到文件的目录
【问题讨论】:
标签: .htaccess redirect http-status-code-301 mod-alias