Skip to content

Instantly share code, notes, and snippets.

@dnshko
Created September 17, 2021 09:51
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dnshko/33bc761b6c4e5b7de647ad219669777f to your computer and use it in GitHub Desktop.
Save dnshko/33bc761b6c4e5b7de647ad219669777f to your computer and use it in GitHub Desktop.
React cPanel .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
@brevins2
Copy link

thanks for the help

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