Can anyone suggest alternative methods for forwarding a full URL path in Webflow, specifically when redirecting from a subdomain and switching to a root domain?

TL;DR
  • Use Cloudflare Workers, a redirect service, or a custom proxy server to forward full URL paths from a subdomain to a root domain, since Webflow doesn't support dynamic path redirection natively.  
  • Alternatively, configure server-side redirects if hosted separately, or rebuild content under root domain folders in Webflow to avoid subdomain complications.

Webflow does not natively support full path forwarding when redirecting from a subdomain (like blog.example.com/post-title) to a root domain (example.com/post-title). However, there are several alternative methods to achieve this using external tools or services.

1. Use Cloudflare Page Rules or Workers

  • Cloudflare offers powerful tools to manage redirects, including full path forwarding.
  • Use Page Rules for basic path forwarding (though only a limited number are free).
  • For more advanced control, Cloudflare Workers allow you to write custom JavaScript to redirect with full path logic.
  • Example: Redirect requests from blog.example.com/* to example.com/$1.

2. Configure Web Server Rules (If Hosting Subdomain Elsewhere)

  • If the subdomain (blog.example.com) is hosted separately (e.g., on a traditional server), you can configure server-side redirects using Nginx or Apache.
  • Set a 301 rule to pass the full path using variables, e.g., $request_uri.

3. Use a Redirect Service (e.g., Redirect.pizza or EasyRedir)

  • Connect the subdomain to a third-party redirect service.
  • These tools allow configuring redirects with preserved paths, query strings, and HTTP status codes.
  • Simple setup: point the subdomain’s DNS to the redirect service IP, and configure the redirect on their dashboard.

4. Set Up a Custom Proxy Server

  • You can create a small proxy app (e.g., with Express.js or using AWS Lambda + API Gateway) that handles path forwarding.
  • Route all traffic from the subdomain to this proxy server, which then performs a 301/302 to the correct root domain + path.

5. Avoid Subdomain — Use Folders in Webflow Instead

  • If the goal is to unify all paths under the root domain, consider rebuilding subdomain content within Webflow under a directory like /blog/.
  • This isn’t a redirect, but can eliminate the need for subdomain-forwarding complexity.

Summary

To forward the full URL path from a subdomain to a root domain in Webflow, use external solutions like Cloudflare Workersredirect services, or a custom proxy server since Webflow does not support dynamic path redirection across domains natively.

Rate this answer

Other Webflow Questions