Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
htaccess simple redirection
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.votre-site.eu$
RewriteRule ^(.*) http://votre-site.eu/$1 [QSA,L,R=301]
RewriteEngine On
RewriteRule ^([a-zA-Z0-9\-\_]+)$ $1.php
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://votre-site.eu/$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.