Results 1 to 11 of 11

Thread: SSL

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    a.k.a. me vladec's Avatar
    Join Date: Feb:2004
    Location:
    Posts: 607

    SSL

    !

    , + , ( - , )

    SSL .
    http:// www. https://, https://www https://.

    .htaccess e:

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTPS} off
    RewriteCond %{HTTP_HOST} !^example\.sk [NC]
    RewriteRule (.*) https://example.sk/$1 [R=301,L] 
    
    #RewriteCond %{SERVER_PORT} ^443$
    #RewriteRule (.*) https://example.sk/$1 [R=301,L]
    - , http://www :

    Code:
    RewriteEngine On  
    RewriteBase /  Options +FollowSymlinks    
    RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]  
    RewriteRule ^(.*)$ http://%1/$1 [R=301,L]    
    RewriteCond %{REQUEST_FILENAME} !-f  
    RewriteRule ^([^.]+)$ $1.php [NC,L]     
    RewriteCond %{HTTPS} off  
    RewriteRule ^secure-page.php$ https://example.com/secure-page [L,R=301]    
    RewriteCond %{HTTPS} off  
    RewriteRule ^secure-page/ secure-page [R=301,L]    
    RewriteCond %{HTTPS} on  
    RewriteRule ^secure-page/ secure-page [R=301,L]
    
    RewriteCond %{HTTP_HOST} ^[^.]+.[^.]+$  
    RewriteCond %{HTTPS}s ^on(s)|  
    RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    RewriteCond %{HTTP_HOST} ^[^.]+.[^.]+$  
    RewriteCond %{HTTPS}s ^on(s)|  
    RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    * example.com,

    , .
    Last edited by vladec; 2nd February 2015 at 17:27.
    i5-9600KF | Asus TUF Z390 | GTX 1060 OC | Seasonic Focus GX-550 | CORSAIR 4000D Airflow
    |

  2. #2

  3. #3
    Registered User teou's Avatar
    Join Date: Feb:2008
    Location: Dreieich (Hessen), ,
    Posts: 4,247
    ,

    . www.example.com example.com, . - https://example.com, .

    Code:
    <ifModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} off [NC,OR]
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^site\.(.*)$ [NC]
    RewriteRule (.*) https://example.com%{REQUEST_URI} [R=301]
    </ifModule>
    - RewriteCond %{HTTP_HOST} ^site\.(.*)$ [NC] - - .

    Code:
    <ifModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} off [NC,OR]
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule (.*) https://example.com%{REQUEST_URI} [R=301]
    </ifModule>
    , . - 301.

    .. pictures.example.com, , 1-2 .

    ... , .
    Last edited by teou; 3rd February 2015 at 18:19. Reason:

  4. #4
    a.k.a. me vladec's Avatar
    Join Date: Feb:2004
    Location:
    Posts: 607
    , , teou. , , www http https. , .

    , " " , .

    , , www | http | https://www https.
    i5-9600KF | Asus TUF Z390 | GTX 1060 OC | Seasonic Focus GX-550 | CORSAIR 4000D Airflow
    |

  5. #5
    Registered User teou's Avatar
    Join Date: Feb:2008
    Location: Dreieich (Hessen), ,
    Posts: 4,247
    /, , . ( , , ), .

    : ., ://......

    , , . . , - . ://., .

  6. #6
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    , teou .
    , .
    rewrite_log, .

    , . , .
    , ..:
    Code:
    ServerAlias www.example.com
    .htaccess , ? .htaccess webRootDir? ?

  7. #7
    a.k.a. me vladec's Avatar
    Join Date: Feb:2004
    Location:
    Posts: 607
    , , non-www. , . Cloudflare .
    - http:// www https://;
    https://www https:// .

    .

    , , https, , .

    - wp index.php /.
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://estavisa.gr/$1 [R=301,L]
    # Check that you're on port 443 and the hostname starts with www
    RewriteCond %{SERVER_PORT} ^443
    RewriteCond %{HTTP_HOST} ^www\.
    # Redirect to domain without the www
    RewriteRule (.*) https://estavisa.gr$1 [L,R,QSA]
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    . , , , www, https:// https://www
    i5-9600KF | Asus TUF Z390 | GTX 1060 OC | Seasonic Focus GX-550 | CORSAIR 4000D Airflow
    |

  8. #8
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    .
    , . .. . - , www.

    https://www.estavisa.gr? , ? , ?

    , , , , . , , . . . .

  9. #9
    Registered User teou's Avatar
    Join Date: Feb:2008
    Location: Dreieich (Hessen), ,
    Posts: 4,247
    , . , , (, , ).

    . startssl.

  10. #10
    , Rampage_rado's Avatar
    Join Date: Jul:2004
    Location:
    Posts: 3,100
    ... 2 -, ...

    non-www ?

  11. #11
    a.k.a. Bibi Flower's Avatar
    Join Date: Aug:2006
    Location: Sofia, Bulgaria
    Posts: 562
    , , .
    *., .

    google , www. .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |