Answers for "apache redirect www to non-www"

1

apache redirect www to non-www

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
</IfModule>
Posted by: Guest on December-21-2020

Code answers related to "apache redirect www to non-www"

Browse Popular Code Answers by Language