Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

react router not working in cpanel

<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>
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #react #router #working #cpanel
ADD COMMENT
Topic
Name
4+4 =