Forums / National / Russian / Тех. поддержка / Редирект на HTTPS

циклическая ссылка

Macik
#41467 2016-03-05 16:41
#41456 prostogorod:
, после клика на ссылку в строке url браузера
http://site.ru/index.php/?rwr=news/v-sele-preobrazhenka

Почему?

Потому, что что-то отрабатывает не в полной мере.
Вы не привели, ни логов, ниверсий используемого софта, поэтому о причинах можно только гадать.
 

Вот для изучения мой лог:

# Запрошенный ресурс news/124337
RewriteBase "/cotwork"
[/initial] (3) [perdir cotwork/] add path info postfix: cotwork/news -> cotwork/news/124337
[/initial] (3) [perdir cotwork/] strip per-dir prefix: cotwork/news/124337 -> news/124337
[/initial] (3) [perdir cotwork/] applying pattern '^(en|ru|de|nl|zh_TW|i_sami-no)/(.*)' to uri 'news/124337'
[/initial] (3) [perdir cotwork/] add path info postfix: cotwork/news -> cotwork/news/124337
[/initial] (3) [perdir cotwork/] strip per-dir prefix: cotwork/news/124337 -> news/124337
[/initial] (3) [perdir cotwork/] applying pattern '^admin/([a-z0-9]+)' to uri 'news/124337'
[/initial] (3) [perdir cotwork/] add path info postfix: cotwork/news -> cotwork/news/124337
[/initial] (3) [perdir cotwork/] strip per-dir prefix: cotwork/news/124337 -> news/124337
[/initial] (3) [perdir cotwork/] applying pattern '^(admin|login|message)(/|\\?|$)' to uri 'news/124337'
[/initial] (3) [perdir cotwork/] add path info postfix: cotwork/news -> cotwork/news/124337
[/initial] (3) [perdir cotwork/] strip per-dir prefix: cotwork/news/124337 -> news/124337
[/initial] (3) [perdir cotwork/] applying pattern '^system/?$' to uri 'news/124337'
[/initial] (3) [perdir cotwork/] add path info postfix: cotwork/news -> cotwork/news/124337
[/initial] (3) [perdir cotwork/] strip per-dir prefix: cotwork/news/124337 -> news/124337
[/initial] (3) [perdir cotwork/] applying pattern '^([^?]+)' to uri 'news/124337'
[/initial] (4) [perdir cotwork/] RewriteCond: input='cotwork/news' pattern='!-f' => matched
[/initial] (4) [perdir cotwork/] RewriteCond: input='cotwork/news' pattern='!-d' => matched
[/initial] (2) [perdir cotwork/] rewrite 'news/124337' -> 'index.php?rwr=news/124337'
[/initial] (3) split uri=index.php?rwr=news/124337 -> uri=index.php, args=rwr=news/124337
[/initial] (3) [perdir cotwork/] add per-dir prefix: index.php -> cotwork/index.php
[/initial] (2) [perdir cotwork/] trying to replace prefix cotwork/ with /cotwork
[/initial] (5) strip matching prefix: cotwork/index.php -> index.php
[/initial] (4) add subst prefix: index.php -> /cotwork/index.php
[/initial] (1) [perdir cotwork/] internal redirect with /cotwork/index.php [INTERNAL REDIRECT]
[/initial/redir#1] (3) [perdir cotwork/] strip per-dir prefix: cotwork/index.php -> index.php
[/initial/redir#1] (3) [perdir cotwork/] applying pattern '^(en|ru|de|nl|zh_TW|i_sami-no)/(.*)' to uri 'index.php'
[/initial/redir#1] (3) [perdir cotwork/] strip per-dir prefix: cotwork/index.php -> index.php
[/initial/redir#1] (3) [perdir cotwork/] applying pattern '^admin/([a-z0-9]+)' to uri 'index.php'
[/initial/redir#1] (3) [perdir cotwork/] strip per-dir prefix: cotwork/index.php -> index.php
[/initial/redir#1] (3) [perdir cotwork/] applying pattern '^(admin|login|message)(/|\\?|$)' to uri 'index.php'
[/initial/redir#1] (3) [perdir cotwork/] strip per-dir prefix: cotwork/index.php -> index.php
[/initial/redir#1] (3) [perdir cotwork/] applying pattern '^system/?$' to uri 'index.php'
[/initial/redir#1] (3) [perdir cotwork/] strip per-dir prefix: cotwork/index.php -> index.php
[/initial/redir#1] (3) [perdir cotwork/] applying pattern '^([^?]+)' to uri 'index.php'
[/initial/redir#1] (4) [perdir cotwork/] RewriteCond: input='cotwork/index.php' pattern='!-f' => not-matched
[/initial/redir#1] (1) [perdir cotwork/] pass through cotwork/index.php

Т.е. у меня Apache осуществляет внутренний редирект, в строке браузера остается запрошенный URL: 

site.test/cotwork/news/124337

 

https://github.com/macik
правильный хостинг — https://goo.gl/fjCa1F