2010-06-03 23 views
0

我正在写一个.htaccess来支持一个站点上的几个移动的文件。概念是,/filename.htm现在在/filename/index.htm,我想链接到它只读/filename/。这里是我有:.htaccess重定向指令文件到目录

redirect permanent /filename.htm http://www.example.com/filename/ 

这会按预期工作吗?谢谢。

回答

1

是的,你的代码看起来不错,应该做的伎俩。

+0

它工作正常。 – 2010-06-06 03:05:30