Answer the question
In order to leave comments, you need to log in
How to setup 2 versions of http/https site on yii1 + htaccess?
Good afternoon. The site is hosted by timeweb. There was a task: there is a site with https. Redirects from http to https or vice versa have not yet been set up, there are reasons for that: seo. You need to split the site into 2 versions.
1) with https
2) with http I
created a dev folder in the public_html folder where I placed a copy of the site with some SEO changes
In the htaccess settings (at the root - public_html) I wrote:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP:X-HTTPS} 1
RewriteRule ^(.*)$ /dev/$1 [QSA,L]
</IfModule>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question