Chinaunix首页 | 论坛 | 博客

分类: LINUX

2018-01-01 20:22:12

首先在配置里把重写打开
# Turn on rewrite engine 
 Options +FollowSymlinks
 RewriteEngine on
 # More rules below ...


RewriteEngine On
RewriteCond %{HTTP_HOST}  domain.com/$1
RewriteCond %{REQUEST_URI}  !^/target-folder 
RewriteRule ^(.*)$ http://www.domain.com/target-folder/$1 [L,R=permanent]
阅读(58) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~
评论热议
请登录后评论。

登录 注册