Last active
September 4, 2020 05:47
-
-
Save stephenjude/043ed4306d19e1b766cbe0ace479b1d9 to your computer and use it in GitHub Desktop.
htaccess configuration for shared hosted laravel application
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
RewriteEngine On | |
RewriteCond %{HTTP_HOST} YOURDOMAINNAME\.com [NC] | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://YOURDOMAINNAME.com/$1 [R,L] | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} ^www\.YOURDOMAINNAME\.com$ | |
RewriteRule ^/?$ "http\:\/\/ww\.YOURDOMAINNAME\.com\/" [R=302,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment