Found a solution for resolving the error “ A“ meta ” Which occurs if there is this line:

<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 

It is written that you need to add this to the .htaccess file:

 <FilesMatch "\.(htm|html|php)$"> <IfModule mod_headers.c> BrowserMatch MSIE ie Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie </IfModule> </FilesMatch> 

In this case, the error does not disappear.

And the second question. So that there was no gluing, you need to register the following:

 RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*) http://%1/$1 [L,R=301] 

or

 RewriteCond %{HTTP_HOST} ^www.site.ru$ [NC] RewriteRule ^(.*)$ http://site.ru/$1 [R=301,L] 

Now this part of the file looks like this:

 <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^roocms RewriteRule (.*) http://jane.co.ua/$1 [R=301,L] RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://jane.co.ua/ [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [L,QSA] </IfModule> 

If you replace this line RewriteCond %{HTTP_HOST} ^roocms with this RewriteCond %{HTTP_HOST} ^www.site.$ [NC] will there be problems?

  • Hey. Thanks for using .htaccess using my solution from Habr. Nicely. Regarding gluing ... Yes, you can remove the whole block and there will be no gluing ... Well, in the 4th line there is an error ... ^ roocms should in your case be replaced with ^ jane - alex Roosso

0