[.htaccess] Cum redirectionez http catre https cu .htaccess

Locked
User avatar
BDragoS
Membru
Membru
Posts: 1686
Joined: 7 years ago
Location: Raducaneni
Has thanked: 0
Been thanked: 0
Zodiac:
Age: 18
Contact:
Status: Offline

6 years ago

Cum redirectionez http catre https cu .htaccess ?

Daca doriti redirectionarea intregului website pe https, va rugam sa inserati codul de mai jos in fisierul .htaccess din public_html:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ [Please login or register to view this link] [R,L]

Daca websitul pe care doriti sa il redirectionati este intr-un subfolder, folositi codul de mai jos in .htaccess:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} folder
RewriteRule ^(.*)$ [Please login or register to view this link] [R,L]
Locked

Return to “.htaccess”