Skip to content

Instantly share code, notes, and snippets.

@DavidSteinbauer
Created August 19, 2016 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidSteinbauer/fc5b927f42451be915bc8e512af2b0bd to your computer and use it in GitHub Desktop.
Save DavidSteinbauer/fc5b927f42451be915bc8e512af2b0bd to your computer and use it in GitHub Desktop.
zur Vermeidung von duplicate content
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
@DavidSteinbauer
Copy link
Author

DavidSteinbauer commented Sep 21, 2016

falls es nicht funktioniert:
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.humpenoeder.de/$1 [R,L] </IfModule>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment