<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум ReadyScript &mdash; Редирект с http на https]]></title>
		<link>https://forum.readyscript.ru/topic/933/redirekt-s-http-na-https/</link>
		<atom:link href="https://forum.readyscript.ru/feed/rss/topic/933/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Редирект с http на https».]]></description>
		<lastBuildDate>Tue, 04 Oct 2016 10:00:39 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Редирект с http на https]]></title>
			<link>https://forum.readyscript.ru/post/4883/#p4883</link>
			<description><![CDATA[<p>Сейчас хостер отписал </p><div class="codebox"><pre><code>Через nginx это будет быстрее работать</code></pre></div><p>Решил так и сделать. Вопрос закрыт.</p>]]></description>
			<author><![CDATA[null@example.com (Владимир 1916)]]></author>
			<pubDate>Tue, 04 Oct 2016 10:00:39 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/4883/#p4883</guid>
		</item>
		<item>
			<title><![CDATA[Редирект с http на https]]></title>
			<link>https://forum.readyscript.ru/post/4882/#p4882</link>
			<description><![CDATA[<p>Хочу сделать редирект на https.<br />Сертификат установлен, в данный момент сайт доступен и по http и по https. Нужно только https.<br />Как нужно изменить .htaccess? Сейчас он такой:</p><div class="codebox"><pre><code>AddDefaultCharset Off

&lt;IfModule mod_php5.c&gt;
    php_flag magic_quotes_gpc off
    php_flag magic_quotes_runtime off
    php_flag register_globals off
    php_flag display_errors on
    php_value max_input_vars 5000
&lt;/IfModule&gt;

&lt;IfModule mod_dir.c&gt;
    DirectoryIndex index.php index.htm index.html
&lt;/IfModule&gt;

&lt;IfModule mod_rewrite.c&gt;
    RewriteEngine On
    #RewriteBase /

    #RewriteRule modules\/.*?\/(config|controller|model)\/ - [F,L]
    #RewriteRule core\/.* - [F,L]
    

    RewriteRule ^(robots.txt)$ $1 [L]

    RewriteCond %{HTTP:Authorization} ^Basic.*
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?http_authorization=%{HTTP:Authorization} [QSA,L]    
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
    

&lt;/IfModule&gt;

#Запрещаем открывать файлы напрямую
&lt;Files ~ &quot;(\.inc\.php|\.tpl|\.tpl\.php|\.auto\.php)$&quot;&gt;
    Order allow,deny
    Deny from all
&lt;/Files&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Владимир 1916)]]></author>
			<pubDate>Tue, 04 Oct 2016 09:51:18 +0000</pubDate>
			<guid>https://forum.readyscript.ru/post/4882/#p4882</guid>
		</item>
	</channel>
</rss>
