Created
December 31, 2021 11:45
-
-
Save RobyCigar/ce522ef50a7a4eddb0c6b19e3b8cef1d to your computer and use it in GitHub Desktop.
hosting react di cpanel
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
#1 build biasa | |
#2 hasil build "dist" dalamnya, upload ke hosting | |
#3 set "/.htaccess" | |
<IfModule mod_rewrite.c> | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.html [QSA,L] | |
ErrorDocument 404 /index.html | |
</IfModule> | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/plain | |
AddOutputFilterByType DEFLATE text/html | |
AddOutputFilterByType DEFLATE text/xml | |
AddOutputFilterByType DEFLATE text/css | |
AddOutputFilterByType DEFLATE application/xml | |
AddOutputFilterByType DEFLATE application/xhtml+xml | |
AddOutputFilterByType DEFLATE application/rss+xml | |
AddOutputFilterByType DEFLATE application/javascript | |
AddOutputFilterByType DEFLATE application/x-javascript | |
</IfModule> | |
#4 test situs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment