How i can disable the ssl

I have a webpage, y wont to redirect non-ssl on some directory, for example: SSL - NON SSL

Please rephrase your question. Hard to understand what you are asking.

Ok sorry i dont speak english, I wont to disable the SSL on certain directory for example:, but i dont know how i can do that. Im using Ubuntu 16.04 and Apache2

It depends what other redirects etc. you have. Also it seems odd to want to prevent people from using the more secure https

If you add a .htaccess file in the “links” folder with

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

That should redirect requests to http. It doesn’t totally disable https, simply redirects people who try and use https to the http version.

Or, do you want to redirect anyone going to to but anyone going to would get to ?


i create the .htaccess but doesnt work.

That is why I started by saying “It depends what other redirects etc. you have”

What redirects do you currently have ?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.