Help me figure out a redirection rule with the exception of the robots.txt file in .htaccess .
The site moved from http to https . Appealed to those hosting support and they wrote a redirection rule from http to https in the .htaccess file with the following content:
RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Protocol} !=https RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L] Redirects start working. But an error was found in the control panel:
The server responds with a redirect to the request /robots.txt
Further technical support hosting said the following:
To correct the situation, you must set the correct rules for redirection with exceptions.
Help them ask