Nurio Docs Tutorials Connecting Your Blog to a Subdirectory (/blog) via Reverse Proxy
Hosting & Domains Guide Dashboard UI Walkthrough

Connecting Your Blog to a Subdirectory (/blog) via Reverse Proxy

The ultimate guide on routing yourdomain.com/blog to Nurio using Vercel Next.js rewrites, Cloudflare Workers, or Nginx for maximum SEO authority.

6 min read
Difficulty: Advanced

Overview & Key Takeaways

  • Hosting on a subdirectory (yourdomain.com/blog) consolidates 100% of domain authority compared to subdomains.
  • Next.js and Vercel users can configure rewrites in next.config.js with 4 lines of code.
  • Cloudflare Workers offer instant zero-latency edge reverse proxying for any custom tech stack.

Step-by-Step Instructions

1

Copy your Nurio Origin URL

Navigate to "Website" in your dashboard and find your assigned Nurio origin URL (e.g. `https://your-workspace.nurio.site`).

Assigned Nurio Edge Origin
https://nurio.sh/proxy/acme-corp/blogs Copy
2

Add Rewrites in Next.js (next.config.js)

Add the following rewrites block into your Next.js configuration file:

next.config.js
async rewrites() {
  return [
    { source: '/blog', destination: 'https://nurio.sh/proxy/acme-corp/blogs' },
    { source: '/blog/:path*', destination: 'https://nurio.sh/proxy/acme-corp/blog/:path*' }
  ];
}
javascript
// next.config.js
module.exports = {
  async rewrites() {
    return [
      {
        source: '/blog',
        destination: 'https://YOUR-SUBDOMAIN.nurio.site/blog',
      },
      {
        source: '/blog/:path*',
        destination: 'https://YOUR-SUBDOMAIN.nurio.site/blog/:path*',
      },
    ];
  },
};
3

Deploy & Verify Live Connection

Deploy your updated website. Open yourdomain.com/blog in your browser, then return to Nurio dashboard to run the live proxy health verification check.

Status: HTTP 200 OK · Reverse Proxy Verified
18ms Edge Latency

Ready to create your post?

Open your Nurio dashboard to run the AI generator with your target keywords.

Open Domain & Hosting Settings →