mardi 29 décembre 2015

Apache rewrite from all http and from www https to https non-www, and with full URL

I'm looking for a rewrite phrase for Apache. I want to rewrite:

  • all non-www http
  • all www http
  • all www https

requests to non-www https. Also the URL after .TLD/ should be preserved.

Example:

  • http ://example.com/aaa/index.php
  • https ://www.example.com/aaa/index.php
  • http ://www.example.com/aaa/index.php should be redirected to https ://example.com/aaa/index.php

Thank you.




Aucun commentaire:

Enregistrer un commentaire