Варианты решения Ваших вопросов

  хостинг
<< Назад       301 редирект

Вопрос: Здравствуйте! Подскажите пожалуйста, почему может не работать 301 редирект в .htaccess: Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} ^avco\.ru$ [NC] RewriteRule ^(.*)$ http://www.avco.ru/$1 [R=301,L] Это перенаправление без www на www. Но оно на сайте работает на всех внутренних, а на главной - нет. Раньше работало!
Ответ:

Здравствуйте.

Сайт открывается на главно как по адресу http://www.avco.ru/ так и по адресу http://avco.ru/ С чем у вас возникли трудности?

Вопрос: Открываться-то открывается, нужно, чтобы при наборе http://avco.ru/ перекидывало на http://www.avco.ru/. На внутренних перекидывает нормально.
Ответ:

уточните какие изменения вы вносили? когда перестало работать

Вопрос: Никаких изменений не делал! Запись на "перекидку" в .htaccess делал года 3 назад, всё работало нормально. Сегодня случайно обнаружил, что перекидывает только внутренние страницы. Это не сильно страшно, просто интересно, почему вдруг перестала работать команда.
Ответ:

у вас еще полно ошибок в логе

[29-Nov-2014 13:46:03 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 136
[29-Nov-2014 13:46:03 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 420
[29-Nov-2014 13:47:51 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 136
[29-Nov-2014 13:47:51 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 420
[29-Nov-2014 13:49:23 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 136
[29-Nov-2014 13:49:23 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 420
[29-Nov-2014 13:51:41 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 136
[29-Nov-2014 13:51:41 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 420
[29-Nov-2014 13:51:42 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 136
[29-Nov-2014 13:51:42 UTC] PHP Deprecated: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of exec_acts(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in /home/avcoru/public_html/engine/includes/news.php on line 420


<< Назад