.htaccess将指令文件重定向到目录
我正在编写一个.htaccess来支持站点上的几个移动文件。其概念是,.htaccess将指令文件重定向到目录,.htaccess,redirect,.htaccess,Redirect,我正在编写一个.htaccess来支持站点上的几个移动文件。其概念是,/filename.htm现在位于/filename/index.htm,我希望指向它的链接仅为/filename/。以下是我所拥有的: redirect permanent /filename.htm http://www.example.com/filename/ 这会像预期的那样工作吗?谢谢。是的,你的代码看起来不错,应该可以
/filename.htm
现在位于/filename/index.htm
,我希望指向它的链接仅为/filename/
。以下是我所拥有的:
redirect permanent /filename.htm http://www.example.com/filename/
这会像预期的那样工作吗?谢谢。是的,你的代码看起来不错,应该可以