I
I
isomiac2019-03-06 09:37:56
htaccess
isomiac, 2019-03-06 09:37:56

How to fix htaccess?

Hello. Please tell me how to fix. There are rules in htaccess:
RewriteCond %{THE_REQUEST} //
# Check if the forward slash (//) is repeated more than twice.
RewriteCond %{QUERY_STRING} !http(s|)://
# Make sure it's not a url in GET
RewriteRule .* /$0 [R=301,L]
# Eliminate all unnecessary slashes.
from https://site.ru/blog////
redirects to site.ru/blog
everything works but I have a site with https I need to redirect to a site with https://

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2019-03-06
@dodo512

Before /$0add the full address.
RewriteRule .* https://site.ru/$0 [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question