Redirect from http to https except one page

1

I am redirecting from http to https to my page from the htaccess (I am using laravel), but I need a specific page to be the exception to this rule and keep using http:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^misitio.com [NC]
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://misitio.com/$1 [L,R=301]

I have seen that it is something like this:

RewriteCond %{REQUEST_URI}!^/pagina-sin-https

But it has not worked for me, I appreciate some idea

    
asked by Francisco Quijada 24.08.2018 в 18:53
source

0 answers