Im having a problem viewing the subpages of my website that i deployed to Hostinger root folder or equivalent(subdomain), I run "npm run build" and deploy the files inside "build" folder to hostinger.
Of course it works on my local and firebase, but not on Hostinger.
See the files below for home, inner pages and FTP content.
home:
subpages:
ftp content from "build" folder.
Thanks!
I got this here are the steps:
<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>
Build the app using the command below.
npm run build OR yarn build
And deploy your 'build' folder to your root folder or equivalent(subdomains).
That's it, It works to me.