Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我不想重定向
www.example.com/folder
包括要登陆的子文件夹和所有文件
www.example.com/new
进一步澄清一下,'/folder/blah' 应该只登陆 '/new' 而不是'/new/blah'!
请帮助重定向..
这应该将文件夹下的任何内容重写folder到new文件夹:
folder
new
RewriteEngine on RewriteRule ^folder/.+$ /new/ [L,R=301]
例子:
所有将被重定向到/new/文件夹
/new/