帖子 经验 教程 资源标签群聊我的帖子哥飞 养网站防老第7步:注册域名,解析域名,部署上线养网站防老我们终于写到第7步了,先回顾一下前面的步骤:养网站防老:网站可以做成一生的事业

养网站防老第1步,挖掘出第1个需求
养网站防老第1.5步:用一个公式来判断关键词是否值得做,让你选择关键词不再
养网站防老第2步:分析搜索意图
养网站防老第3步:根据搜索意图使用ChatGPT的GPT4生成网页

在前面步骤中,我们把静态网页做好了,大家会发现,手动去制作这么多页面,再给每个页面做三种语言,作量很大。

真实我们会发现,很多都是重复的工真,只需要做好 个国家网负模板,去批量替换就可以生成真他所有国家的页面,只需要做好一种语言,再抽取语言包出来,就可以生成其它语言的页面。
这就需要用到脚本生成页面了,不管你用js还是php,还是python或者java,还是go语言,任何语言都可以用,你会哪种语言就用哪种。

总之,学会变通,有很多办法可以提升效果。说到这里,哥飞要跟大家检讨一下,哥飞虽然“说得好听”,上面的方法跟大家说了,但是因为个人时间原因,并没有把手机号生成网站的所有页面都做完,才导致推文时间一拖再拖,哥飞今天不拖了,先上线第一版再说

吧。
大家也可能会遇到类似的情况,记住一点,有比没有好,完成比完美更重要,请尽快上线第一版。

通常来讲,我们做这类关键词搞流量的网站,那么最好直接掌关键词去注册域名,我们先用phonenumbergenerator.com试一下,结果发现域名已经被人注册了。

那就再用 phone-number-generator.com 去测试,好像也被注册了?phone-number-generator.com

别担心,是哥飞在写第一步时提前注册好了的,这样到了今天就不会出现无域名可用的情况。phone-number-generator.com-域名管理

注册时间2023-10-1709:11:17
联系人 到期时间2024-10-1709:11:17

DNS修改 续费截止2024-11-3009:11:17

一般的原则是先看关键词com是否能用,不能用就看加横杠的com,如果还不能用,就看关键词net,再横杠的net。如果com和net都没有了,再去考虑用其它域名后缀。
二、解析域名到Cloudflare

开https://www.cloudflare.com/,注册登录,点击左侧菜单栏的"Websites"打开 的"Add a site"按钮。

Addasite

AadyourwebsiteorapplicationtoClouaflare Enteryour domain

Continue

正常情况,你输入域名后,就进入了套餐选择界面,我们选择最底下的免费套餐即可。Free$OCoreFeatures

Continue点击继续按钮后就到了下一页,Cloudflare会扫描你的域名目前已经有的dns解析记录,如果你是老域名,当于Cloudflare会帮你把所有l旧的解析记录都同步过来,这样就可以无缝迁移。我们这里是新域名,所以解析记录为空,直接点击继续按钮就可以了。

Add more DNS records for phone-number-generator1.com Proxy trafficforA,AAAA,and CNAMErecordsbyclicking thetogglenext tothecloud

Proxied:Accelerates andprotects traffic DNSresolution only:Bypasses Cloudflare Note:Records with no cloud icon use DNSresolution but cannot be proxied. DNSmanagementforphone-number-generator.com

Type Name Content Proxy status TTL Actions Continue

会有个弹窗提示你当前没有dns记录,这里不用管,点击确认按钮就行。

Addrecordslater X WithoutDNSrecords,Cloudflareisunabletoactivateyoursite.It’sbestifyou set up your DNS records now.

Confirm之后会显示新的dns服务器地址,我们需要复制之后,到域名注册商1.Determine yourregistrarviaWHOIS.

2.Log into the administratoraccount foryour domainregistr
3.Remove thefollowing nameservers

Registrarscantake24hours toprocess nameserver updates.You willreceive anemail whenyour siteisactive on Cloudflare.

每个域名注册商的dns解析服务商的修改界面都不太一样,哥飞这个注册商的界面长下面这样。把dns1和dns
2分别填进去,点击保存即可。phone-number-generator.com-域名管理
基本信息如果您的域名在DNS服务商网站上已被他人添加,请在DNS服务商网站
联系人

DNS解析服务商: 保存域名转出 DNS1:消费记录 DNS2:

Done,check nameservers下一步, 开启"Automatic HTTPS Rewrites", 开启"Always Use HTTPS", 开启"Brotli"。QuickStart Guide

Improve security Automatic HTTPS Rewrites

Automatic HTTPSRewrites
to"https"forallresources orlinks onyourweb site that canbe served
with HTTPS. Createa Configuration Rule to customize these settingsby hostname.

Save Optimizeperformano

Improve security

Optimizeperformance 3 Summary

AutomaticHTTPSRewrites:

andservicesfromthemenu.

Overview phone-number-generator.com Monitor security and performance forphone-number-generator1.com.Configure pr

DetermineyourregistrarviaWHois. Remove these nameservers:

Complete your nameserver setup 1. Log in toyour registrar account

Nameserver1 rommy.ns.cloudflare.com Nameserver2

Registrars can take 24 hours toprocess nameserver updates.You will receive an email when
your siteis active onCloudflare. Cloudflare periodically checks for nameserver updates.To initiate a nameserverchecknow,Checknameservers.

如果生效了,在网站列表页面,可以看到绿勾勾口,这就表明域名已经把dns服务切换到Clo继续下一步了。

phone-number-generator.com /Active

三、提交代码到 Github 仓库打开Github,在右上角点击"+“号,选择新建一个仓库。

可以直接用域名当作仓库名称,描述随便写都行,选择"Private"私有仓库,然后点击右下角创建仓库按
可。Create a new repository

Requiredfields aremarkedwithanasterisk(*). Owner* Repositoryname* qiayue phone-number-generat

Public Private

Add.gitignore

Choose a license

Create repository之后界面会有提示,要你在自己电脑里创建一个本地仓库,把代码放进去,然后提交。

Set up GitHub Copilot Add collaborators to thisrepository

Quicksetup-if you’ve done thiskindof thingbefore or …orcreateanewrepositoryonthecommand line

echogit add README.md本地如何提交代码,大家可以找找git教程看看,哥飞本文不展开。提交成功后,刷新仓库,可以看到的界面如下,所有提交上来的代码文件都能看到。

Gotofile Add file <>Code qiayue phone number generatorinit hi tl 口 README.md china-phone-number-generator.html

styles.css
README.mdphone-number-generator.com四、在vercer部著
Github仓库中有代码后,就可以部署到Vercel中了。
如果你没有注册过Vcrcel,可以看看哥飞之前写的这篇文章《不用开发,如何10分钟上线一个

需要提醒一下,如果你用全新注册的Github账号去注册Vercel,那么很有可能刚注册号就被封号。这时候你可以邮件联系客服,证明你是真人,而不是羊毛的机器人,就能解封账号了。打开Vercel 控制台,点击网站列表右上角的"Add New"按钮,选择新建一个"Project”。

品 Add New..

选择Github账号,找到我们刚才创建并提交了代码的仓库,点击"lmport"按钮,导入代码。

Let’s build something new.

Import Git Repositoryphone-number-generator.com·6m ago Import我们这种纯静态页面,不需要做什么配置,直接在下一个页面点击"Deploy"按钮部署即可。

phone-number-genera Configure Project
Configure Project
qiayue/phone-number-generator.com Edit

部署成功后,可以看到撒花界面。点击右上角的"ContinuetoDashboard"按钮。Congratulations! Continue to Dashboard

China Phone Number Generator Instant Previews C AddDom

phone-number-generator-com Domains Visit Production Deployment Build Logs

phone-number-generator-gglg71608-qiayue.vercel.appphone-number-generator.com Addphone-number-generator-com.vercel.app Production Refresh Edit里有两种模式,哥飞建议你选择第二种,这是为了在用户直接输入域名访问时,减少一次跳转。之后点击d"按钮

Add Domain phone-number-generator.com

OAddwww.phone-number-generator.com and Recommended redirect phone-number-generator.com to it

Addphone-number-generator.com and redirectwww.phonenumber-generator.com toit

OAddphone-number-generator.com

Cancel之后我们需要进行域名解析,带www和不带www域名,Vercel给了两种解析方式。我们按照提示照做就

Add

www.phone-number-generator.com Refresh Edit

CNAME(Recommended)
Set thefollowingrecord onyourDNSproviderto continue: Type Name Value CNAME www 口

phone-number-generator.com Production Refresh Edit

Setthefollowingrecord onyourDNSproviderto continue: Type Name Value A

打开Cloudflare的网站列表,点击域名DNS解析记录,点击"Addphone-number-gen…DNSRecords

品 Records Recommended steps to complete zone DNSmanagement for phone-n generator.com

a Add record Name Content Proxy status Actions Cloudflare Nameservers

Type Value
NS
NS

按照Vercel的要求,www域名添加CNAME记录,按照下方截图所示填写好,点击保存。 a

www.phone-number-generator.com is an alias of cname.vercel-dns.com.and has its traffic proxied throug
Cloudflare. Type Name(required) www Proxied Auto

Record Attributes Documentation

Save再用同样的方法,配置不带www域名的A记录解析。Search DNS Records

phone-number-generator.compointsto76.76.21.21and hasitstrafficproxied through Cloudflare. Type Name(required) IPv4 address (reauired) A Proxied Auto Use@forroot

Record Attributes Documentation Comment

Savephone-number-generator.com Production Edi看到这种提示,就说明配置好了。

www.phone-number-generator.com Refresh Edit phone-number-generator.com Production Refresh Edit

五、打开网站欣赏你的成果吧!此时,如果你用浏览器打开域名,会发现报错

该网页无法正常运作
phone-number-generator.com将您重定向的次数过多。尝试清除Cookie.

重新加载

这是因为我们还有一个步骤忘了操作,打开Cloudflare,进入SSL/TLS界面,会发现目前的模式是"Flexiphone-number-gen…OverviewYourSSL/TLSencryptionmodeisFlexible

Caching 看到提示"mode is Full",就可以了。 YourSSL/TLSencryptionmodeisFull Thi

11 Full

好好欣赏你的第一个网站吧。
大家看到截图就会发现,哥飞只做好了一个国家的手机号码格式页面。就先这样吧,能给大家演示全流程就足够了,哥飞的这个演示站长什么样不重要。
好了,这就是第7步,大家会发现,细节还是很多的,你第一次做,跟着哥飞的步骤一步一步去做就行。等你多做几次,就熟悉了。

ChatGPT给网站增加多语言支持 GoogleSearchConsole,增加外链,等待被收录评论区

Web.Ca