I used this code
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(shop|university)(/.*)?$ https://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L] RewriteCond %{HTTPS} on RewriteRule !^(shop|university)(/.*)?$ http://%{HTTP_HOST}%{REQUEST_URI} [NC,R=301,L] </IfModule> I want redirect http to https two categories (shop and university), other i want redirect to http
BUT, after installation of the rules to all https transfers me on http but from universiti and shop puts on the main page. what could it be?