Created
November 14, 2017 02:44
-
-
Save zo0o0ot/f81d3c22a1bf2783ced1743a6787042c to your computer and use it in GitHub Desktop.
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
<FilesMatch appsettings.php> | |
Order Allow,Deny | |
Deny from all | |
</FilesMatch> | |
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteBase / | |
# Comment next line to disable forcing of HTTPS for all pages: | |
# (it is strongly recommended you *keep* this setting enabled!) | |
#RewriteCond %{HTTPS} off | |
#RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
#H/T to anubhava http://stackoverflow.com/a/29874382/324527 | |
DirectoryIndex bootstrap.php index.html | |
Options +FollowSymLinks | |
RewriteEngine on | |
# redirect all api calls to /api/bootstrap.php | |
RewriteRule ^api/((?!bootstrap\.php$).+)$ api/bootstrap.php [L,NC] | |
# If the request is a file, folder or symlink that exists, or is for the mail server, serve it up | |
RewriteCond %{REQUEST_FILENAME} -f [OR] | |
RewriteCond %{REQUEST_FILENAME} -d | |
#RewriteCond %{SERVER_PORT} ^1025$ | |
#RewriteCond %{SERVER_PORT} ^1080$ | |
RewriteRule ^ - [L] | |
# otherwise, serve your index.html app | |
RewriteRule ^(.+)$ index.html [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@mattheworres Here's the .htaccess file that I'm using for leagify.me