Home / Tak Berkategori / Configuration .htaccess for react router

Configuration .htaccess for react router


This time I want to share the .htaccess configuration snippet for react router so you can access the static path that you define in the React project.

Please create a file .htaccess Then put the following code inside, and save it.

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>



Game Center

Game News

Review Film
Rumus Matematika
Anime Batch
Berita Terkini
Berita Terkini
Berita Terkini
Berita Terkini
review anime

Gaming Center

Tagged: