R
R
R4W2017-01-12 14:11:20
Apache HTTP Server
R4W, 2017-01-12 14:11:20

How to write a rule for Mod_rewrite redirect in htacess with saving the protocol and closing with a slash?

Hello colleagues! Please help me write a rule that will want a redirect from a page without a closing slash to a page with a closing slash, while maintaining the http/https protocol. It’s not a problem to figure out the slash yourself, but when you visit https and the page without a closing slash is redirected to http with a closing slash.
Now it's like this:
HTTPS ://site.com/page - > HTTP ://site.com/page/
It should be like this:
HTTPS ://site.com/page - > HTTPS ://site.com/page/
HTTP : //site.com/page -> HTTP ://site.com/page/
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question