Jump to content
weddekrause

Przekierowanie z http na https

Recommended Posts

wchodzimy przez FILEZILLA  na nasz hosting .szukamy folderu .htaccess i dodajemy następująca kombinacje .


 

Cytat

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

 

Share this post


Link to post
Share on other sites

Znacznie łatwiejszą i częściej używaną opcją jest odpowiednia konfiguracja VirtualHost poprzez dyrektywę redirect.

 

<VirtualHost *:80> 
   ServerName www.yourdomain.com 
   Redirect permanent / https://www.yourdomain.com/ 
</VirtualHost>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×