prevent blank page on refresh for Next.js static export
This commit is contained in:
parent
d833c56ddd
commit
3456b6e2b5
@ -33,17 +33,9 @@
|
|||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# | 4. Fallback for SPA-like refreshing (The "White Screen" Fix) |
|
# | 4. Fallback for SPA-like refreshing (The "White Screen" Fix) |
|
||||||
# --------------------------------------------------------------------
|
# --------------------------------------------------------------------
|
||||||
# If the file exists, serve it (images, css, js)
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} -f
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteRule ^ - [L]
|
RewriteRule . /index.html [L]
|
||||||
|
|
||||||
# If not found, trying appending .html (for flat files)
|
|
||||||
RewriteCond %{REQUEST_FILENAME}.html -f
|
|
||||||
RewriteRule ^(.*)$ $1.html [L]
|
|
||||||
|
|
||||||
# If still not found, show Custom 404 Page
|
|
||||||
# DO NOT fallback to root index.html for non-existent pages (causes soft 404s)
|
|
||||||
ErrorDocument 404 /404.html
|
|
||||||
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>http://localhost:3000/</loc></url><url><loc>http://localhost:3000/about/</loc></url><url><loc>http://localhost:3000/projects/</loc></url><url><loc>http://localhost:3000/residential-real-estate/</loc></url><url><loc>http://localhost:3000/lifestyle/</loc></url><url><loc>http://localhost:3000/contact/</loc></url><url><loc>http://localhost:3000/compare/</loc></url><url><loc>http://localhost:3000/privacy-policy/</loc></url><url><loc>http://localhost:3000/terms-of-service/</loc></url><url><loc>http://localhost:3000/residential-real-estate/barca-at-godrej-msr-city/</loc></url><url><loc>http://localhost:3000/residential-real-estate/godrej-woods/</loc></url><url><loc>http://localhost:3000/residential-real-estate/godrej-hoskote/</loc></url><url><loc>http://localhost:3000/residential-real-estate/godrej-lakeside-orchard/</loc></url><url><loc>http://localhost:3000/residential-real-estate/godrej-tiara/</loc></url></urlset>
|
<?xml version="1.0" encoding="UTF-8"?><urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>https://skyandsoil.metatronnest.com/</loc></url><url><loc>https://skyandsoil.metatronnest.com/about/</loc></url><url><loc>https://skyandsoil.metatronnest.com/projects/</loc></url><url><loc>https://skyandsoil.metatronnest.com/residential-real-estate/</loc></url><url><loc>https://skyandsoil.metatronnest.com/lifestyle/</loc></url><url><loc>https://skyandsoil.metatronnest.com/contact/</loc></url><url><loc>https://skyandsoil.metatronnest.com/compare/</loc></url><url><loc>https://skyandsoil.metatronnest.com/privacy-policy/</loc></url><url><loc>https://skyandsoil.metatronnest.com/terms-of-service/</loc></url><url><loc>https://skyandsoil.metatronnest.com/residential-real-estate/barca-at-godrej-msr-city/</loc></url><url><loc>https://skyandsoil.metatronnest.com/residential-real-estate/godrej-woods/</loc></url><url><loc>https://skyandsoil.metatronnest.com/residential-real-estate/godrej-hoskote/</loc></url><url><loc>https://skyandsoil.metatronnest.com/residential-real-estate/godrej-lakeside-orchard/</loc></url><url><loc>https://skyandsoil.metatronnest.com/residential-real-estate/godrej-tiara/</loc></url></urlset>
|
||||||
Loading…
x
Reference in New Issue
Block a user