A
A
adrenalinruslan2018-04-07 13:22:13
htaccess
adrenalinruslan, 2018-04-07 13:22:13

How to connect .htaccess?

Help connect 2 .htaccess please, here is the first one:

AddDefaultCharset UTF-8

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L]

And here is the second one:
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-04-07
@zkelo

AddDefaultCharset UTF-8

RewriteEngine On

RewriteCond %{SERVER_PORT} !^443$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question