Skip to content

Instantly share code, notes, and snippets.

@stephenjude
Last active September 4, 2020 05:47
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 stephenjude/043ed4306d19e1b766cbe0ace479b1d9 to your computer and use it in GitHub Desktop.
Save stephenjude/043ed4306d19e1b766cbe0ace479b1d9 to your computer and use it in GitHub Desktop.
htaccess configuration for shared hosted laravel application
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