Last active
November 12, 2021 17:01
-
-
Save mfd/4fc9567651af16c6513877a5b1977d1b to your computer and use it in GitHub Desktop.
.htaccess file for PWA and SSR apps (React, Vue)
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
AddType "text/html; charset=utf-8" .html .htm | |
AddDefaultCharset utf-8 | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> | |
# AddType "text/html; charset=windows-1251" .html .htm | |
# AddDefaultCharset windows-1251 | |
# AddType application/x-httpd-php .php .htm .html | |
# php_value default_charset windows-1251 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment