How to Deploy Third-Party Web Pages to Subdirectories: A Complete Guide (Including SEO Optimization)

How to Deploy Third-Party Web Pages to Subdirectories: A Complete Guide (Including SEO Optimization)
CapGo AI founder YG's speech on AI SEO at the Ahrefs Summit

In simple terms: After generating a large number of web pages, to maximize SEO traffic, the brand (hello.com) needs to first place the web pages on the subdomain abc.hello.com, then use a reverse proxy to place the web pages on hello.com/abc

In current website content distribution and SEO strategy, deploying third-party generated webpages (such as Webflow, Framer, CapGo.ai, WordPress, etc.) to a subdirectory of the main site (rather than a subdomain) is a more advantageous approach. This article will systematically explain this process, from SEO-related pros and cons analysis to DNS configuration, CNAME and TXT Record settings, reverse proxy operations, and alternative solutions, helping you seamlessly integrate the process.

Table of Contents

  1. The Impact of Subdomains and Subdirectories on SEO
  2. Overview of Steps to Integrate Webflow or Capco Websites into Subdirectories
  3. DNS Settings: Introduction and Configuration of CNAME and TXT Records
  4. Implementing Subdirectory Deployment Using a Reverse Proxy
  5. Alternative Solution: Exporting HTML Files for Manual Upload

The Impact of Subdomains and Subdirectories on SEO

From a structural perspective:Subdomains (e.g., blog.example.com) are treated by search engines as “independent websites.”Subdirectories (e.g., example.com/blog) are treated as part of the main site.

Which is better for SEO?

Although Google has stated that there is little difference between subdomains and subdirectories in terms of ranking, extensive SEO practice has shown that using subdirectories makes it easier to inherit the main site's authority and trustworthiness, resulting in better ranking performance.✅ Recommended: Deploy pages generated by Webflow or CapGo.ai to a subdirectory of the main site (e.g., example.com/landing/).

Steps to integrate the website into a subdirectory

  1. Prepare the page: Complete the webpage design and publish it in Webflow or CapGo.ai.
  2. Obtain the page access URL: Record the URL after publishing in Webflow or CapGo.ai.
  3. Configure DNS: Connect Webflow or CapGo's domain name service to your domain name.
  4. Set up a reverse proxy: Point the subdirectory to Webflow or CapGo.ai content.
  5. (Optional) Download the HTML file and upload it to the main site server as a static resource deployment.

DNS settings: CNAME and TXT records

When connecting a third-party platform to your domain name, you first need to modify the DNS records. You can do this in your domain management platform (such as Cloudflare, Alibaba Cloud, Namecheap, etc.).

What is a CNAME Record?

A CNAME (Canonical Name) record is used to map a subdomain to another domain.Example: Point webflow.example.com to proxy-ssl.webflow.com.

What is a TXT Record?

A TXT record is used to store text information, typically for identity verification purposes, such as:Domain ownership verification (e.g., Google Search Console)SSL certificate application verificationEmail service SPF/DKIM verification🛠️ Practical Tip: Webflow typically requires you to add a CNAME and a TXT record to verify the domain and enable SSL.

Implementing Subdirectory Deployment via Reverse Proxy

What is a Reverse Proxy?

A reverse proxy refers to: the main server acting as an intermediary for client requests, forwarding the requests to the backend Webflow/CapGo website, and then returning the response to the user.

Example:

When a user accesses example.com/landing/:

  1. The request is sent to your main server (e.g., Nginx or Apache).
  2. The main server forwards the request to webflow.example.com via the reverse proxy.
  3. The returned webpage content is then “wrapped” under the /landing/ path and returned to the user.

Nginx configuration example:

location /landing/ {proxy_pass https://webflow.example.com/;proxy_set_header Host webflow.example.com;proxy_set_header X-Real-IP $remote_addr;}⚠️ Note on path handling: Ensure that static resources in subdirectories load properly (JS and CSS paths must be mapped consistently).

Alternative solution: Upload HTML files to the main site

If you do not want to use a reverse proxy, you can use another method:

  1. Export static web pages from Webflow/CapGo.ai:

This is typically a compressed package containing HTML, CSS, JS, images, and other files.

  1. Upload to the /landing/ directory on your main site server:

Use FTP, SCP, or the website's backend management system for upload.

Advantages:

Faster loading and more stable page performance.No need to configure a reverse proxy or worry about cross-domain issues.

Disadvantages:

Inconvenient for content updates; each modification requires re-exporting and re-uploading.Not suitable for dynamic content.

Summary and Best Practices

SolutionAdvantagesDisadvantagesRecommended Scenarios
Subdirectory + Reverse ProxyGood SEO, automatic content updatesComplex configurationRecommended as the first choice
Subdomain DeploymentSimple configuration, supports native platform integrationIndependent SEO weightingOptional backup solution
Static HTML UploadStable and fast, pure frontend deploymentNot suitable for frequent updatesUse when there are few pages

🔚 Final reminder: If you prioritize optimal SEO performance and brand consistency, we recommend prioritizing the subdirectory + reverse proxy deployment method.

Read more

如果用建站工具设置子域名

如果用建站工具设置子域名

以下是一个详细指南,教你如何为建站工具(比如 CapGo, Webflow、Framer、Wix 等)设置一个 子域名(subdomain),比如 site.yourdomain.com: 🧭 一、前提条件 在开始之前,你需要准备: 1. ✅ 一个已注册的主域名(例如 yourdomain.com) 域名注册商可以是 GoDaddy、Namecheap、阿里云、腾讯云等。 2. ✅ 访问你的域名 DNS 管理面板的权限。 3. ✅ 你的网站(例如 Webflow 发布后)已经有了一个目标地址(通常 Webflow 会告诉你需要添加哪些记录,如 proxy.webflow.io)。 ⚙️ 二、在 Webflow(或其他建站工具)

By CapGo AI - by YG
🌍 多语言网站的 SEO (AEO, GEO) 最佳实践:子目录结构与语言代码规范

🌍 多语言网站的 SEO (AEO, GEO) 最佳实践:子目录结构与语言代码规范

在当今全球化的网络环境中,支持多语言的网站已经成为许多品牌的标配。 然而,如何在不同语言之间实现良好的 SEO 表现,却是许多开发者和运营人员容易忽视的关键点。 本文将系统讲解: * 为什么使用**子目录(subfolder/subdirectory)**结构是 SEO 的最佳选择; * 如何正确设置 /en/、/zh-Hans/ 等语言路径; * 以及到哪里可以查找标准的语言代码(如 es 代表西班牙语)。 一、为什么选择子目录结构? 在多语言 SEO 实践中,URL 结构是搜索引擎理解网站语言版本的核心信号之一。 主流方案包括: * 不同顶级域名(ccTLD,如 example.cn 、example.fr) * 子域名(subdomain,如 zh.example.com) * 子目录(subfolder,如 example.com/zh-Hans/

By CapGo AI - by YG