我想设置重写规则
RewriteRule /test /my/long/path/index.html
但我的index.html 通过ajax 获取其他文件,所以它的工作方式并不像这样简单。我需要目录的所有子文件的规则
我试过:
RewriteRule /test /my/long/path/
RewriteRule /test/* /my/long/path/*
但我最终得到了一个有趣的重定向http://my.domain.co/test/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/index.html/
抱歉我对 Apache 的无知,谢谢
您的 RewriteRule 无效。试试这个:
RewriteRule ^test(/.*)?$ my/long/path$1
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)