Jump to content
Torsty.ro

about SSL ?

Recommended Posts

1. Nu este nici-o problema, asa ar trebui sa functioneze.

2. Du-te in fisierele host-ului (/var/www/html sau pe cPanel in public_html) si creeaza un fisier cu acest nume .htaccess  (Include si punctul dinainte in numele fisierului)

3. Copiaza codul asta in fisierul .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Mai pe scurt, treaba merge asa accesezi protocolul SSL prin https://, codul asta nu face nimic altceva decat sa te redirecteze catre https:// de fiecare data cand accesezi url-ul indiferent de varianta gen http://xyz.ro, www.xyz.ro.

Enjoy!

  • Thanks 1
  • Upvote 2
Link to comment
Share on other sites

5 minutes ago, tagheuer said:

1. Nu este nici-o problema, asa ar trebui sa functioneze.

2. Du-te in fisierele host-ului (/var/www/html sau pe cPanel in public_html) si creeaza un fisier cu acest nume .htaccess  (Include si punctul dinainte in numele fisierului)

3. Copiaza codul asta in fisierul .htaccess


RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Mai pe scurt, treaba merge asa accesezi protocolul SSL prin https://, codul asta nu face nimic altceva decat sa te redirecteze catre https:// de fiecare data cand accesezi url-ul indiferent de varianta gen http://xyz.ro, www.xyz.ro.

Enjoy!

TY ! Job done.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...