Skip to content

Instantly share code, notes, and snippets.

@robozavri
Created November 3, 2018 08:50
Show Gist options
  • Save robozavri/a19bd6d3169998d37006241abf716689 to your computer and use it in GitHub Desktop.
Save robozavri/a19bd6d3169998d37006241abf716689 to your computer and use it in GitHub Desktop.
laravel currect htaccess on droplet digitalocean
RewriteEngine On
RewriteRule ^/(\.well-known/.*)$ $1 [L]
rewriteCond %{HTTPS} !on
rewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteRule ^(.*) public/$1
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /public/index.php [L]
@robozavri
Copy link
Author

remove htaccess from /public folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment