#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
mod_rewrite cheat sheet | mod_rewrite reference with useful examples.
►https://mod-rewrite-cheatsheet.com
The mod_rewrite cheat sheet covers all major aspects with minimal detail. It is designed as a quick mod_rewrite reference with useful examples for practical use.
L’anti-sèche complète pour les réécritures d’URLs d’apache avec mod_rewrite
(le complément parfait pour ►https://htaccess.madewithlove.be de ▻https://seenthis.net/messages/631898)
#mod_rewrite #RewriteRule #htaccess #réécriture_url #apache #outil #web-based
]]>Apache RewriteRule and query string — Simone Carletti
▻https://simonecarletti.com/blog/2009/01/apache-rewriterule-and-query-string
utiliser les query string dans les RewriteRule d’apache
Voir aussi : ▻https://perishablepress.com/redirect-query-string-htaccess
#RewriteRule #apache #réécriture_url #mod_rewrite #htaccess #réécriture_url
]]>#mod_rewrite - Serveur #apache HTTP Version 2.4
▻http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html
documentation de mod_rewrite pour apache 2.4
]]>#Test your #RewriteRules for #Apache #mod_rewrite
►http://martinmelin.se/rewrite-rule-tester
This tool lets you write and test your rewrite rules for Apache’s mod_rewrite on-the-fly.
]]>