我有表单的 URL www.aroundnext.org/Scholastic/Home
,如何www.aroundnext.org/Home
在内部附加时将其更改为Scholastic
uj5u.com热心网友回复:
RewriteEngine On
RewriteRule ^Scholastic/Home/(.*)$ /Home/$1 [R=301,NC,L]
这会将旧目录 ( www.aroundnext.org/Scholastic/Home ) 中的档案重定向到新目录 ( www.aroundnext.org/Home )。该档案必须存在于新目录中才能起作用。
0 评论