You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @alexandre-tobia! I don't have time right now to switch focus to it. Is there anyway with Bedrock to get the URL to not use a subdirectory for hosting? ie, drop the /wp and just serve WP from http://nps.test/? I think that wil be the main problem one. The /app/themes etc should be OK or a quicker fix.
As WP2Static is designed to run off dev environments, I wouldn't care about the security implications of adjusting things against their project's best practices - as long as your dev server isn't open to the public.
HI @leonstafford,
When generating static website, all of my static assets are not generated because of 404.
I've added logging line on your Crawler.php (L205) for showing the real URL used by the "getUrl" function:
My wordpress site info:
LOGS :
2021-06-08 13:01:58: REAL URL http://nps.test/Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/styles/main.css
2021-06-08 13:01:58: 404 for URL /Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/styles/main.css
2021-06-08 13:01:58: REAL URL http://nps.test/Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/scripts/main.js
2021-06-08 13:01:58: 404 for URL /Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/scripts/main.js
2021-06-08 13:01:58: REAL URL http://nps.test/Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/mix-manifest.json
2021-06-08 13:01:58: 404 for URL /Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/mix-manifest.json
I don't know why is he calling url like "http://nps.test/Users/alexandretobia/Sites/nps/web/app/themes/nps-wp/resources/assets/scripts/main.js"
And a folder with "/Users/"...is created with corrupted files.
PHP version: 7.4.18
I'm using bedrock (roots.io)
Can you help me with that ?
Thanks a lot
The text was updated successfully, but these errors were encountered: