• Resolved duytanqb

    (@duytanqb)


    I was generate static pages success.
    Now I would like to use the static folder as main website driven by htaccess
    I mean after I generate static page, I will change htaccess to use static folder as main website.
    I’ve try these setting but not succes.

    RewriteRule ^(.*) /tai/wp-content/static/%{HTTP_HOST}/$1 [L]
    or
    RewriteRule ^(.*)$ /tai/wp-content/static/$1 [L]

    https://www.ads-software.com/plugins/simply-static/

Viewing 2 replies - 1 through 2 (of 2 total)
  • I believe this will generate problems with your original WordPress installation. The best method is to host WordPress on your local computer @home – the most important motivation of using a static site exporter is to NOT have to host WordPress on the open internet.

    You are actually reinventing wheels – if you want to keep your WordPress online, then just use one of the many CACHING plugins – that will generate the Apache Rewrite Rules for you. W3 Total Cache and WP Super Cache are ok.

    Hi duytanqb,

    B0RG provided a great response, pretty much what I would have said. I would either (1) host WordPress on your local computer and upload the exported pages to your webhost, or (2) host WordPress on a subdomain — e.g. wordpress.yourdomain.com — and set up the Simply Static export for https://www.yourdomain.com, where https://www.yourdomain.com is just serving up the static files from a directory.

    If you do want to keep WordPress at the original domain, then as B0RG mentioned, use one of the caching plugins instead. They’re a lot easier to use and set up for that kind of thing.

    Best,
    Scott

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use as static website’ is closed to new replies.