Subfolder with WordPress
Replace WordPress's blog — or run alongside it — by proxying /blog on the server that hosts WordPress.
Self-hosted WordPress
Your WordPress server already runs Nginx or Apache — add the /blog proxy to the same vhost. Nginx shown here; Apache users: see the Apache guide.
nginxlocation = /blog {
proxy_pass https://you.blogcms.app/_subfolder/;
proxy_set_header Host you.blogcms.app;
proxy_ssl_server_name on;
}
location = /blog/ { return 301 /blog; }
location /blog/ {
proxy_pass https://you.blogcms.app/_subfolder/;
proxy_set_header Host you.blogcms.app;
proxy_ssl_server_name on;
}
WordPress.com
Hosted WordPress.com can't proxy — route your domain through Cloudflare and use the Worker from the Cloudflare guide instead.
If /blog was WordPress's own blog path, export those posts as Markdown first and bring them in via Settings → Import.