Automatic jump from domain name with WWW to domain name without www

» network technique » Automatic jump from domain name with WWW to domain name without www

Using the. htaccess file properly can control most of the functions of the Linux host. Today we are talking about the domain name jump

带WWW域名自动跳转到不带www域名方法-极客公园

. htaccess code

 RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.\. me$ [NC] RewriteRule ^(.*)$  https://gitcafe.net/ $1 [L,R=301]

--End--

Post reply

Your email address will not be disclosed. Required items have been used * tagging

6 Replies to "Method of automatically jumping from a domain name with WWW to a domain name without www"