Вопрос: |
Добрый день! Обнаружил, что ссылка на админ. панель старого сайта перестала быть доступной. Последний раз был на этой странице **.**.**** г. После этого единственное техническое изменение, которое производилось на сайте - переход на https. Подскажите, пожалуйста, в чем может быть проблема.С уважением, Николай. |
Ответ: |
Здравствуйте. Сама папка на сайте существует? Вы что то меняли в htaccess? |
Вопрос: |
Да, каталог существует, в * прямых правок не делал, добавил только несколько условий редиректа через cPanel. |
Ответ: |
Оьмените эти редиректы |
Вопрос: |
Удалил редиректы, проблема не ушла. |
Ответ: |
редиректы нужно убирать на сайте выше уровнем |
Вопрос: |
Я так и сделал, тем более я их как ставил, так и убирал через cPanel, а не напрямую в *. Они прописались в общем * сайта *.*, после удаления в cPanel они оттуда, соответственно, стерлись. |
Ответ: |
проверьте пож. файлы htaccess |
Вопрос: |
Проверил сразу после удаления редиректов. ни в корне, ни в public_html, ни в /*, ни в /*administrator редиректов нет. |
Ответ: |
Редирект может быть в .htaccess в public_html |
Вопрос: |
Повторюсь, я уже проверил несколько раз, редиректа там нет. |
Вопрос: |
Там стандартный друпаловский htaccess. Вот его код:## **Drupal settings:## Protect files and directories from prying eyes. Order allow,deny# Don't show directory listings for URLs which map to a directory.Options -Indexes# Follow symbolic links in this directory.Options +FollowSymLinks# Make Drupal handle any *** errors.ErrorDocument *** /index.php# Set the default handler.DirectoryIndex index.php index.html index.htm# Override PHP settings that cannot be changed at runtime. See# **default.settings.php and drupal_environment_initialize() in# *bootstrap.inc for settings that can be changed at runtime.# PHP *, Apache * and *. php_flag magic_quotes_gpc off php_flag magic_quotes_sybase off php_flag register_globals off php_flag session.auto_start off php_value mbstring.http_input pass php_value mbstring.http_output pass php_flag mbstring.encoding_translation off# Requires mod_expires to be enabled. # Enable expirations. ExpiresActive On # Cache all files for * weeks after access (A). ExpiresDefault A******* # Do not allow PHP scripts to be cached unless they explicitly send cache # headers themselves. Otherwise all scripts would have to overwrite the # headers set by mod_expires if they want another caching behavior. This may # fail if an error occurs early in the bootstrap process, and it may cause # problems if a non-Drupal PHP file is installed in a subdirectory. ExpiresActive Off # Various rewrite rules. RewriteEngine on # Block access to "hidden" directories whose names begin with a period. This # includes directories used by version control systems such as Subversion or # Git to store control files. Files whose names begin with a period, as well # as the control files used by CVS, are protected by the FilesMatch directive # above. # # NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is # not possible to block access to entire directories from .htaccess, because # is not allowed here. # # If you do not have mod_rewrite installed, you should remove these # directories from your webroot or otherwise protect them from being # downloaded. RewriteRule "(^|/)\." - [F] # If your site can be accessed both with and without the 'www.' prefix, you # can use one of the following settings to redirect users to your preferred # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option: # # To redirect all users to access the site WITH the 'www.' prefix, # (*... will be redirected to *...) # uncomment the following: # RewriteCond %{HTTP_HOST} !^www\. [NC] # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=***] # # To redirect all users to access the site WITHOUT the 'www.' prefix, # (*... will be redirected to *...) # uncomment the following: # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] # RewriteRule ^ http://%*%{REQUEST_URI} [L,R=***] # Modify the RewriteBase if you are using Drupal in a subdirectory or in a # VirtualDocumentRoot and the rewrite rules are not working properly. # For example if your site is at *drupal uncomment and # modify the following line: # RewriteBase /drupal # # If your site is running in a VirtualDocumentRoot at *, # uncomment the following line: # RewriteBase / # Pass all requests not referring directly to files in the filesystem to # index.php. Clean URLs are handled in drupal_environment_initialize(). RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !=/favicon.ico RewriteRule ^ index.php [L] # Rules to correctly serve gzip compressed CSS and JS files. # Requires both mod_rewrite and mod_headers to be enabled. # Serve gzip compressed CSS files if they exist and the client accepts gzip. RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}\.gz -s RewriteRule ^(.*)\.css $*\.css\.gz [QSA] # Serve gzip compressed JS files if they exist and the client accepts gzip. RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}\.gz -s RewriteRule ^(.*)\.js $*\.js\.gz [QSA] # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=*css,E=no-gzip:*] RewriteRule \.js\.gz$ - [T=*javascript,E=no-gzip:*] # Serve correct encoding type. Header set Content-Encoding gzip # Force proxies to cache gzipped & non-gzipped *js files separately. Header append Vary Accept-Encoding |
Ответ: |
Удалите его временно и проверьте. Т.к проблема возникла после изменений постарайтесь вспомнить что именно вы делали |
Вопрос: |
Удалил временно. Весь сайт валится в ***. То, что делал уже описал выше: после активации SSL добавил через стандартный инструмент хостинга: раздел * в cPanel, несколько редиректов с http на https.Добавлял для: *.*.*.*.*.*.*userБольше со ссылками не делалось ничего. Сейчас по Вашей рекомендации эти редиректы убрал, записи в * для них, как мы видим, тоже удалились. |
Ответ: |
чтл подразумевается под "активпция ssl"? ssl никто не аетивирует. Сам сеотификат никак на сайт алиять не может |
Вопрос: |
Как я понял, мне *привязали сертификат. Я понимаю, что *отсутствие сертификата как такового на сайт не влияет. Однако, проблема есть. До этого последнее, что я делал - это поменял местами сайты. Нынешний перенес из подкаталога * непосредственно в public_html, старый из public_html в подкаталог *. После этого проверил доступность админки на обоих сайтах и все. Возможно, проблема кроется тут. Но это было примерно полутора месяцами ранее.После этого последнее, что я делал - это описанные выше редиректы. |
Ответ: |
Именно в редиректах и проблема. Сертификат лишь дает возможность работы по https. А сама ссылка зависит только от наличия папки и редиректов |
Вопрос: |
Дело в том, что редирект для /*administrator я не настраивал. Сделал сегодня в порядке эксперимента, когда обнаружил проблему. И редирект с http на https не помог. |
Ответ: |
Пожалуйста, ожидайте |
Ответ: |
как мы и говорили Вам ранее прична в переадресациях в файле .htaccess в public_html Проверьте пожалуйста сейчас.
|
Вопрос: |
Добрый день! Ссылка работает, спасибо!А в каких строчках файла крылась проблема? Я выше приводил код, подскажите, пожалуйста, мне на будущее, чтобы не мучить поддержку лишний раз... |
Вопрос: |
Стоп. Основной сайт при этом работать перестал полностью. |
Ответ: |
http://agitka.su работает. |
Вопрос: |
Поступил по-другому. Вернул на место * в public_html, а в подкаталоге /* - удалил *. Вроде бы работает. |
Ответ: |
Мы еще при первом тикете проерили сайт и указали что он работает. После любых изменнений очищайте кэш и куки браузера, что бы удостовериться в работоспособности сайта. |