D
D
Denis Ruchiev2017-01-25 22:17:13
CodeIgniter
Denis Ruchiev, 2017-01-25 22:17:13

Is it possible to redirect to https with exceptions?

the redirect is now configured like this

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

there was an urgent need not to redirect some pages, about 10. how can this be done through htaccess

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Ruchiev, 2017-01-25
@denis_bardak

another question arose., in htaccess standard redirect codeigniter
RewriteCond $1 !^(index\.php|robots\.txt|images|css|js)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^( .*)$ index.php?/$1 [L,QSA]
and it turns out that the links that are in the
RewriteCond %{REQUEST_URI} !api* exception
redirect to
/index.php?/api

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question