Public Base URL
When WordPress lives at cms.example.com and the public site is www.example.com.
Use Public Base URL when WordPress lives at one address (for example
https://cms.example.com) and you host the exported HTML at another
(for example https://www.example.com).
Generation always fetches from this WordPress site. Only the written
files are rewritten. Tivlo does not change Settings → General. It
does not move your admin. It just stops writing localhost into the
HTML you are about to upload.
Leave it blank for same-origin
Empty means keep WordPress home/site URLs inside the HTML. That is correct when Tivlo serves files from this same install — the usual “make my host faster” setup.
Set the public origin
Open Settings → Tivlo Static Site → Plugin Settings.
Under Export Folders & Target Routing, set Public Base URL to
the live site address, such as https://www.example.com. Include
https://. Do not add a trailing path unless you really mean it.
Click Save Settings.
Open Build Console and run Full Rebuild. Old files still contain old URLs until you do.
Deploy the contents of wp-content/tivlo-static/ (and any assets
you still need) to that host. Tivlo does not upload them for you —
there is no Netlify or “Deploy” button. Copy the folder like you
would copy a brochure PDF, except it is a tree of HTML.
What gets rewritten
Tivlo rewrites WordPress home/site URLs in exported HTML and CSS so links and references point at the public origin. The fetch during generation still uses the WordPress URL.
| WordPress | Public Base URL | Result in HTML |
|---|---|---|
https://cms.example.com | (empty) | Links stay on cms.example.com |
https://cms.example.com | https://www.example.com | Links use www.example.com |
Leave Public Base URL empty. Anonymous visitors hit this WordPress
install and receive static HTML via X-Tivlo-Static: hit.
Rebuild after changing the field
Existing files keep old URLs until you Full Rebuild. Save is not rebuild. We will keep saying it. It stays true.
add_filter( 'tivlo_ssg_public_base_url', function ( $url ) {
return 'https://www.example.com';
} );How is this guide?