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]
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]