windows 10 pro office 2019 pro office 365 pro windows 10 home windows 10 enterprise office 2019 home and business office 2016 pro windows 10 education visio 2019 microsoft project 2019 microsoft project 2016 visio professional 2016 windows server 2012 windows server 2016 windows server 2019 Betriebssysteme office software windows server https://softhier.com/ instagram takipçi instagram beğeni instagram görüntüleme instagram otomatik beğeni facebook beğeni facebook sayfa beğenisi facebook takipçi twitter takipçi twitter beğeni twitter retweet youtube izlenme youtube abone instagram

Next.js index route returns 404

Asked By: Anonymous

I got a problem to get my nextjs app running on my production server.
I portforward it via htaccess by following code:

RewriteRule ^(.*) <a href="http://127.0.0.1:1338/" rel="nofollow noreferrer">http://127.0.0.1:1338/</a>$1

Every route is working perfectly: /blog,/blog/:id, /about etc.
Just “/” is not working when rendered from serverside. I can navigate to it after loading another route without any problem.
I can also call it by /index but not with mydomain.tld

Does anyone have an idea?


Solution

Answered By: Anonymous

The issue happens when Apache tries to pass an index.html file to the next router which returns an error.

Adding DirectoryIndex disabled to .htaccess file solves the problem.

techinplanet staff


Windows 10 Kaufen Windows 10 Pro Office 2019 Kaufen Office 365 Lizenz Windows 10 Home Lizenz Office 2019 Home Business Kaufen windows office 365 satın al follower kaufen instagram follower kaufen porno
524 Origin Time-out

524 Origin Time-out


cloudflare-nginx