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

Laravel redirecting to /public/public/

In my Laravel project, the .htaccess in the application root redirect to /public. The page loads and I can navigate through the webapp. But https://myproject.com/public/public/mysite is displayed in the URL. When I refresh the page, I get a 404 error…

VIEW QUESTION
Back To Top
Search