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

程序化 SEO 新手指南(超简单解释!)

程序化 SEO 新手指南(超简单解释!)

你有没有在 Google 上搜索过类似以下内容: * “生日邀请函模板” * “学生简历模板” * “Instagram 发帖点子” 如果有,你很可能看到过 Canva 或 Zety 这样的网站的搜索结果。这些网站在 Google 上有成千上万的页面 —— 但它们并不是一个个手动写出来的。 这就是程序化 SEO 的魔力。 我们来用非常简单的方式解释一下。 什么是程序化 SEO? 程序化 SEO 是一种通过数据和模板,而不是逐页手写内容,为网站快速生成大量有用页面的方法。 与其为每个关键词写一篇博客文章,不如创建一个可以反复使用的模板,通过填入不同的关键词来生成内容。 为什么要用它? 假设你有一个帮助人们找锻炼计划的网站。 你想为以下内容分别创建页面: * “男士初级锻炼” * “女士初级锻炼” * “老年人初级锻炼” * “运动员高级锻炼” * ……还有几百个类似的页面 如果手动一个个写,会非常耗时。但使用程序化 SEO,你只需要建立一个智能模板,然后让电脑自动填入具体内容。 一页聚焦一个关键词 这一点非常重要: 👉 每个页面应该只专注

By CapGo AI - by YG
三种可随产品规模扩展的强大 AI + 用户生成内容(UGC)SEO 策略

三种可随产品规模扩展的强大 AI + 用户生成内容(UGC)SEO 策略

大多数公司把内容营销视为一个“成本中心”——内容团队不断产出 SEO 页面、博客文章和落地页,慢慢积累流量。 但如果你的产品能在每次被用户使用时,自动生成 SEO 内容呢? 这就是 AI-UGC SEO 的力量 —— 一个由用户行为 + AI 系统 = 无限内容生产的策略,无需依赖写手或外包公司。 今天我们将探索三种强大的 AI-UGC SEO 策略,帮助任何 AI 平台将产品使用转化为持续增长的搜索流量: 1. AI增强型UGC:让创意内容可被搜索引擎收录 许多平台会生成用户内容 —— 音乐、图像、视频、3D模型等。 但问题是:Google 无法“看到”这些内容。 搜索引擎仍然依赖文本内容(如标题、描述、标签和结构化数据)来进行索引和排名。 那如何让多媒体内容变得可被索引? 通过 AI 增强型 UGC,

By CapGo AI - by YG
终极分析 —— AI 搜索(GEO)对 Google(SEO)的真正影响

终极分析 —— AI 搜索(GEO)对 Google(SEO)的真正影响

总结: 总体而言,AI 搜索是对 Google 的补充,而非替代。 Google 搜索流量并未下降,反而仍在持续增长。 ChatGPT、Claude、Gemini 等 AI 平台是补充工具,不是替代品——就像 Instagram 或 TikTok 的搜索功能一样。 进一步解析: * AI 替代了一部分顶部信息流内容,降低了点击率,但并未减少最终的使用量或产品发现。 * 在中部漏斗阶段,AI 提供了更个性化的对比和建议,虽然点击更少,但转化率提高了。 * 搜索漏斗的形状正在改变:传统 SEO 像一个锥体,而 GEO 更像一个圆柱体(更均匀、更密集),但两者都可能实现相似的转化效果。 * 底部漏斗的 SEO 仍然至关重要,尤其是工具类和高意图关键词,Google 仍占据主导地位。 1. Google

By CapGo AI - by YG
什么是 Programmatic GEO?在 AI 搜索时代开启你的流量新入口

什么是 Programmatic GEO?在 AI 搜索时代开启你的流量新入口

为什么 AI 驱动的搜索正在改变一切 —— 以及如何通过智能、可扩展内容领先一步 我们正在经历一场人们获取信息方式的重大转变。 过去 20 多年里,我们依赖的是 Google 等搜索引擎,人们通常输入简短关键词,例如: * “San Diego 最好的寿司店” * “适合小型企业的 CRM” * “飞巴黎的便宜机票” 但现在,人们开始向 AI 助手提问,比如 ChatGPT、Google Gemini、Perplexity、Claude 等。 而当人们和 AI 对话时,他们的搜索方式不再是关键词输入: * 他们会描述自己的需求 * 他们会解释自己的情况 * 他们会提出真实、完整的问题,而不是简单的关键词 搜索变得更长尾、更个性化 这正是 GEO(生成式引擎优化,Generative Engine Optimization) 的用武之地。 🧠 什么是

By CapGo AI - by YG