Add a blog to WordPress at /blog
The short answer
To add a Ranken blog to a WordPress site at /blog, upload one must-use plugin file. It serves /blog from Ranken, caches pages for 10 minutes and leaves the rest of your WordPress site untouched.
- Method
- A must-use plugin
- Time
- About 2 minutes
- You need
- File access through your host's file manager or SFTP
- Ranken plan
- Starter or Pro
How do I add a blog to WordPress?
Create your blog in Ranken and choose a /blog subfolder, then follow these steps. The examples use www.yoursite.com/blog. Your dashboard shows the same steps with your own address filled in, plus a prompt you can paste into an AI coding assistant.
- 1
Add this must-use plugin
Upload it with your host's file manager or SFTP. It turns on by itself. Your dashboard gives you the full file.
wp-content/mu-plugins/ranken-blog.php <?php /* Plugin Name: Ranken Blog, serves /blog from Ranken */ (function () { $base = '/blog'; $uri = $_SERVER['REQUEST_URI'] ?? '/'; $path = parse_url($uri, PHP_URL_PATH) ?: '/'; if ($path !== $base && strpos($path, $base . '/') !== 0) return; add_action('plugins_loaded', function () use ($base, $uri) { $target = 'https://proxy.ranken.blog/your-blog' . substr($uri, strlen($base)); // Fetches the page from Ranken, caches it for 10 minutes // and sends it back with Ranken's status and headers. }, 0); })(); - 2
Clear your cache
If you use a cache plugin or host cache, purge it once.
On Cloudflare? Use the Cloudflare Worker instead: the edge is faster than PHP.
What should you check before you start?
- If WordPress already uses /blog as the posts page, a page slug or the category base, move it first. Nothing gets deleted.
- Exclude /blog from HTML minification and lazy-load rewriting in cache plugins.
Why put your WordPress blog at /blog instead of a subdomain?
A subfolder keeps every article on your main domain, so the links and authority each post earns build up in one place, next to your product or store pages. A subdomain such as blog.yoursite.com works too, but search engines can treat it more like a separate site. Ranken supports both, plus a custom domain.
WordPress blog questions
Will it conflict with my theme or SEO plugin?
No. A must-use plugin loads before themes and regular plugins, and it only answers requests under /blog. Yoast, Rank Math and your theme keep running on every other page.
Why not just use WordPress posts?
You can. Ranken adds a live SEO score, one-click indexing, schema, llms.txt and an optional AI writer without plugins to install, update or patch.
Add a blog to another platform
Steps checked . See all integrations
Your WordPress site, now with a blog that ranks
Ranken hosts the blog at /blog with SEO, schema, llms.txt and one-click indexing built into every post.