Proper .htaccess config for Next.js SSG
问题 NextJS exports a static site with the following structure: |-- index.html |-- article.html |-- tag.html |-- article | |-- somearticle.html | \-- anotherarticle.html \-- tag |-- tag1.html \-- tag2.html I'm using an .htaccess file to hide the .html extensions: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html Everything works flawlessly, EXCEPT: If I follow a link to domain/article it displays the article.html page, but my