I don't want to run the following code on my localhost, but it still runs on another domain
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ [
%1] [R=301,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) [
]%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>