No internet connection
  1. Home
  2. Support

Change URL structure: /page/index.html

By Woah @woah2019-01-22 13:42:49.411Z

Hi Guys,

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:

www.mywebsite.nl/pagename/index.html

to

www.mywebsite.nl/pagename.html

OR

www.mywebsite.nl/pagename/

and subpage

www.mywebsite.nl/pagename/subpagename/

Hope some one can help me to get it up and running?

Solved in post #2, click to view
  • 5 replies
  1. Leon Stafford @leonstafford2019-01-23 03:06:34.311Z

    Hi @woah,

    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.

    Cheers,

    Leon

    ReplySolution
    1. WWoah @woah2019-01-23 12:48:50.143Z

      Hi Leon,

      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,

      Cheers!

      1. In reply toleonstafford:
        JJohn @johnh36122019-04-04 21:20:42.216Z

        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.

        1. 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 .html extensions and exported fine. So, if you can get WordPress to use the URLs you want, the plugin should reproduce exactly that.

          1. JJohn @johnh36122019-04-15 14:21:27.991Z

            Thanks!