Created
June 15, 2022 01:20
-
-
Save mentisy/f8df9fa57c79b7d6d50a3d827bb85f66 to your computer and use it in GitHub Desktop.
React app in CakePHP project
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
# React root /webroot/attendance | |
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.html [L] | |
</IfModule> |
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
# CakePHP Root / | |
# Uncomment the following to prevent the httpoxy vulnerability | |
# See: https://httpoxy.org/ | |
#<IfModule mod_headers.c> | |
# RequestHeader unset Proxy | |
#</IfModule> | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
RewriteRule ^(\.well-known/.*)$ $1 [L] | |
RewriteRule ^$ webroot/ [L] | |
RewriteRule (.*) webroot/$1 [L] | |
</IfModule> |
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
# CakePHP Web Root /webroot | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment