How i can disable the ssl

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

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: example.org/links/, 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 http://yourdomain.com to http://yourdomain.com/links but anyone going to https://yourdomain.com would get to https://yourdomain.com ?

ERR_TOO_MANY_REDIRECTS

i create the .htaccess but doesnt work.

http://prntscr.com/c9g3jz

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.