How i can disable the ssl


#1

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


#2

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


#3

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


#4

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 ?


#5

ERR_TOO_MANY_REDIRECTS

i create the .htaccess but doesnt work.

http://prntscr.com/c9g3jz


#6

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

What redirects do you currently have ?


#7

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