Last active
November 15, 2015 11:14
-
-
Save joostvanveen/768ebbdb61f65ba901b7 to your computer and use it in GitHub Desktop.
Canonical redirect in .htaccess - force www. prefix on domain
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Canonical redirect - force www. prefix on domain | |
RewriteCond %{HTTP_HOST} ^mydomain\.nl$ [NC] | |
RewriteRule ^(.*)$ https://www.mydomain.nl/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment