Closed levycarneiro closed 4 years ago
I had this occur recently, because of a configuration thing: there's some combination of settings that doesn't work properly, I think when trying to use a relative URL or something.
Hi @levycarneiro - this issues doesn't occur in V7 pre-releases, if you want to get started with that, please download at https://wp2static.com/download - but quite a change, so may require reading through the docs a bit.
In your case, with V6, as @crstauf commented, this issue (V6's poor URL rewriting) usually comes about when there's a mix of protocol's on your WP dev site. ie, some links are http or https (or protocol-relative (//example.com
). To fix this, you can check who's responsible for generating those links (WordPress theme or plugin?) and make sure they match up to your Settings > Site URL. Also, be sure that your Site URL matches the protocol you use when viewing your site - ie, if your WP Site URL is set to http://example.com
but you access the site via https://example.com
via some override, it will confuse WP2Static, which looks for URLs matching your Site URL.
To avoid digging through all your files or DB, if you don't find a quick way to fix offending URLs, you can try a plugin to force https everywhere in your dev site, I think there's one called Really Simple SSL or such.
Please let me know if that doesn't sort things out for you.
recently fixed in master
. should see no more PLACEHOLDER.wpsho
URLs in output.
Thanks, Leon! How can I take the code from master
and install on an wordpress site? Thanks!
Update: nevermind, downloaded from the link above :)
Hello!
First of all, thanks for this great plugin.
Ok, going to the issue at hand:
Page 1:
Page 2:
Thanks.