Hello everyone, tell me how to make a redirect "without the last slash" with "last slash", as well as "/index.php" in "/". Did so, but for some reason it does not work
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^mysite\.ru$ [NC] RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ \/index\.php\ HTTP\/ RewriteRule (.*) http://www.mysite.ru/$1 [R=301,L] RewriteRule ^index\.php$ http:\/\/%{HTTP_HOST}\/ [R=301,QSA,L] php_flag zlib.output_compression On php_value zlib.output_compression_level 5