Check out example codes for "404 Page Not FoundThe page you requested was not found". It will help you in understanding the concepts better.

Code Example 1

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Options -Indexes
wWAEAEEwdwD

Code Example 2

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-dQQQQQQQQQQQQQQQQQQQQQQ
RewriteRule ^(.*)$ index.php/$1 [L]
Options -Indexes

Learn ReactJs, React Native from akashmittal.com