Seenthis
•
 
Identifiants personnels
  • [mot de passe oublié ?]

 

b_b

@b_b
http://www.weblog.eliaz.fr
RSS: b_b
tous les messages de b_b
  • @b_b
    b_b @b_b PUBLIC DOMAIN 19/03/2021
    5
    @monolecte
    @rastapopoulos
    @tofulm
    @gblin
    @cy_altern
    5
    @jeanmarie

    #Apache #redirect www to non-www and HTTP to HTTPS — Simone Carletti
    ▻https://simonecarletti.com/blog/2016/08/redirect-domain-http-https-www-apache

    # Redirection https/www
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} !^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://www.%1%{REQUEST_URI} [L,NE,R=301]

    # Redirection https/non www
    RewriteCond %{HTTPS} off [OR]
    RewriteCond %{HTTP_HOST} ^www\. [NC]
    RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
    RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]

    ping @jeanmarie je crois que j’ai retrouvé ta source :p

    #rewrite #htaccess

    b_b @b_b PUBLIC DOMAIN
    • @cy_altern
      cy_altern @cy_altern CC BY-SA 9/04/2021

      #redirection #mod_rewrite #RewriteRule #htaccess #réécriture_url #www #https

      cy_altern @cy_altern CC BY-SA
    Écrire un commentaire

thèmes

  • #Apache
  • #htaccess
  • #redirect
  • #rewrite
À propos de Seenthis Propriété intellectuelle Recommandations API