Warning: date(): Invalid date.timezone value 'HKT', we selected the timezone 'UTC' for now. in /home/mrgcom/public_html/catalog/controller/common/footer.php on line 48 301重定向htaccess写法

The One 专一

301重定向htaccess写法

写法比较简单,只需在.htaccess最后添加一下语句就行了.它的作用就是做301重定向,把来自域名mrg123.com的请求重定向到www.mrg123.com上.

RewriteCond %{HTTP_HOST} ^mrg123\.com$

RewriteRule ^/?$ "http\:\/\/www\.mrg123\.com\/" [R=301,L]

Powered By 爱你若晴天
身体健康 © 2017 粤ICP备14081548号-1

Article

Shopping

Search

Me