<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^abc.com$ [NC]
RewriteRule ^(.*)$ http://www.abc.com/$1 [R=301,L]
</IfModule>
Apache 开启.htaccesshttpd.conf
Options FollowSymLinks
AllowOverride All
LoadModule rewrite_module modules/mod_rewrit
RewriteEngine on RewriteCond %{HTTP_HOST} ^zerobin.org$ RewriteRule ^/?$ "http\:\/\/www\.zerobin\.org\/"
欢迎分享,转载请注明来源:夏雨云
评论列表(0条)