First of all thanks for WP2Static!
Simple question: How can we change URL structure, because this structure is a bit wrong and would like to change it:
Hope some one can help me to get it up and running?
- 5 replies
- Leon Stafford @leonstafford2019-01-23 03:06:34.311Z
Thanks for trying the plugin!
The 3rd URL structure you've listed is the default, domain.com/mypostname/.
That is unless you're trying to make an Offline ZIP (for sharing on a USB stick or such). In this case, the /index.html is necessary, when there is no webserver serving the static files.
Try unchecking that option and it should be fine.
Here is the latest preview release, which gives you some more features and fixes quite a few issues:https://github.com/leonstafford/wp2static/releases/tag/next_release_preview
It's still in testing, so please let me know any issues you encounter.
Thanks for the fast reply, much appreciated!!
I had it on subdirectory, but i just updated to the latest version, and it's working now without the index.html, so that's great :)!
Thanks for the great plugin, and we are now ready to give it a go with a new live site.
Will def support when all working fine,
- In reply toleonstafford⬆:
This isn't working for me. I don't have Offline ZIP checked and I'm still getting www.mywebsite.nl/pagename/index.html
To be clear, what I'm getting is a real directory called whatever the page name is with an index file inside.
So the domain www.mywebsite.nl/pagename/ works just fine from the end users point of view, but what I want is www.mywebsite.nl/pagename.html. That will allow me to change my .htaccess to strip off the html extension.
Is there any way to do that? Thanks for your help on this. BTW, I'm using the newest version.
- Leon Stafford @leonstafford2019-04-14 15:01:50.058Z
@johnh3612, what you're after isn't quite standard WordPress and the plugin doesn't cater to that use case and probably won't, as the norm is to replicate the site exactly as it is in WordPress.
That said, I made some allocations for the plugin to work with a WP Custom Permalinks plugin, which a user had used to force
.htmlextensions and exported fine. So, if you can get WordPress to use the URLs you want, the plugin should reproduce exactly that.