Answer the question
In order to leave comments, you need to log in
Why does a 404 error appear in the detailed Bitrix?
Hello.
The situation is this. Site on 1C-Bitrix. Connected SSL certificate from Comodo. To get rid of duplicates and make an automatic redirect from www -> without www in htaccess, the following code was written:
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTP:SSL} !1
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
RewriteCond %{HTTP:SSL} !1
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L,R=301]
Answer the question
In order to leave comments, you need to log in
Here is for Bitrix.
https://klondike-studio.ru/standards/standartnyy-h... Install
it if it doesn't work then there is an error in the code.
or server settings,
what OS is used, Bitrix vm?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question