I
I
Igor Gusev2016-06-17 13:25:47
htaccess
Igor Gusev, 2016-06-17 13:25:47

Correct https redirect via .htaccess?

Now (before installing https) on the site there is such a code in .htaccess

RewriteEngine On
# Redirect from www to non-www (never use both)
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule .* http://%1/$0 [R=301,L]


How to change it correctly for a site with https now.

Website: https://smofast.com
Now there is a redirect, but it's not in htaccess - maybe then remove all those lines above?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question