Created
May 2, 2023 23:51
-
-
Save aktaumag/ed8e224e6e2f76c97744c308fa8431db to your computer and use it in GitHub Desktop.
Заметки для настроек сервера, .htaccess, php, js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Заметки для настроек сервера, .htaccess, php, js |
Для удаления index.php
для главной и прочих страниц
RewriteCond %{THE_REQUEST} ^.*/index.php [NC]
RewriteCond %{REQUEST_URI} !^/bitrix/admin/ [NC]
RewriteRule ^(.*)index.php$ https://wseo.pw/$1 [R=301,L]
HSTS заголовок настраивается в .htaccess
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS
Полезные ссылки:
Тестировщик
https://htaccess.madewithlove.com/
Примеры основных ситуаций
https://web-optimizator.com/301-redirekt-htaccess/
Проверка цепочек переадресаций:
https://www.websiteplanet.com/ru/webtools/redirected/
Проверка кода ответа и заголовков:
https://bertal.ru/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
На HTTPS
Для TimeWeb
Для Beget
Ещё вариант