After visiting my website, any page is visited fine, but when I refresh this page, it shows the page is not found, can anyone Please tell me the reason? I made this website from Bolt.new,
Website Link Is https://imgconverterpro.com/
After visiting my website, any page is visited fine, but when I refresh this page, it shows the page is not found, can anyone Please tell me the reason? I made this website from Bolt.new,
Website Link Is https://imgconverterpro.com/
@Mehedi Presuming that what you’ve created is a ‘Single Page Application’, your issue (and the solution) are explained in the documentation here:
https://docs.netlify.com/configure-builds/javascript-spas/
Avoid 404s for SPAs
If your project is a single page app (SPA) that uses the history
pushState
method to get clean URLs, you must add a rewrite rule to serve theindex.html
file no matter what URL the browser requests.
You’ll need to create a redirect as it instructs, the details for which are here:
https://docs.netlify.com/routing/redirects/rewrites-proxies/#history-pushstate-and-single-page-apps
If you don’t know how to do that with your project, (since you created it with bolt.new), then you should seek your support from the bolt.new system/team.
Their support section is here:
https://support.bolt.new/home