skip to Main Content

Can a static export of NextJS be served inside a WordPress theme?

I'm struggling to serve a NextJS export inside of a Wordpress theme folder. I currently have the following htaccess file: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^$ /wp-content/themes/mytheme/next/index.html [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^/wp-content/themes/mytheme/next/ RewriteRule ^(.*)$ /wp-content/themes/mytheme/next/$1…

VIEW QUESTION
Back To Top
Search