14Mar2019년 March 14일 连接到网站时添加/删除www Kilho哦2023-09-11T11:28:45+09:00 By Kilho哦 信息技术 htaccess, Linux, 服务器 1 Comment 如果连接到站点,则可以自动添加或删除www。 输入.htaccess文件。 #添加www rewriteCond%{http_host} ^(?www \。)(。+)[nc] RewriteRule ^(.*) http://www.%1/$1 [R=301,NE,L] #www删除 rewriteCond%{http_host} ^www \。(。+)[nc] RewriteRule ^(.*) http://%1/$1 [R=301,NE,L] Label Name* Email* Website Label Name* Email* Website 1 Comment Inline Feedbacks View all comments 이주노 정말 좋은 정보 감사합니다. 잘 쓰겠습니다
정말 좋은 정보 감사합니다. 잘 쓰겠습니다