首页 > 问答 > .htaccess怎么写,可以将域名重定向和网页重定向结合嗎?

.htaccess怎么写,可以将域名重定向和网页重定向结合嗎?

[导读]:Files ~ "^.(htaccess|htpasswd)$" deny from all /Files Redirect permanent http://www.jsyongye.com/index.php?m=contentc=indexa=listscatid=86 http://www.jsyongye.com/html/JJFA/jryy/ Redirect permanent http://www.jsyongye.com...

<Files ~ "^.(htaccess|htpasswd)$">

deny from all

</Files>

Redirect permanent http://www.jsyongye.com/index.php?m=content&c=index&a=lists&catid=86 http://www.jsyongye.com/html/JJFA/jryy/

Redirect permanent http://www.jsyongye.com/index.php?m=content&c=index&a=lists&catid=13 http://www.jsyongye.com/news/zxgg/

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(jsyongye\.com)(:80)? [NC]

RewriteRule ^(.*) http://www.jsyongye.com/$1 [R=301,L]

order deny,allow

可以这样合并起来写嗎?

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/47231.html