Created
December 3, 2021 20:04
-
-
Save meetsohail/b32363fbb9a9aaeca5f98eab38f26ecb to your computer and use it in GitHub Desktop.
Laravel www to non-www redirect using .htaccess
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
# Redirect www to non-www | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC] | |
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment