Redirect 自定义域上的页面给出了;“重定向太多”;错误

Redirect 自定义域上的页面给出了;“重定向太多”;错误,redirect,dns,github-pages,namecheap,Redirect,Dns,Github Pages,Namecheap,我有一个来自namescape.com的域名,并通过github页面托管了一个页面。有时我的页面无法加载,并出现“重定向太多”错误。我想问题出在我的高级DNS的某个地方。看一看- 基本上,我有两条A记录指向Github的IP地址,一条CNAME记录指向mygithubusername.Github.io,还有一条URL重定向记录指向我的域。我做错了什么?据我所知,问题来自URL重定向记录。当尝试访问www.akshayud.me时,它会重定向到akshayud.me,当它点击URL重定向时,它会

我有一个来自namescape.com的域名,并通过github页面托管了一个页面。有时我的页面无法加载,并出现“重定向太多”错误。我想问题出在我的高级DNS的某个地方。看一看-


基本上,我有两条A记录指向Github的IP地址,一条CNAME记录指向mygithubusername.Github.io,还有一条URL重定向记录指向我的域。我做错了什么?

据我所知,问题来自URL重定向记录。当尝试访问
www.akshayud.me
时,它会重定向到
akshayud.me
,当它点击URL重定向时,它会重定向回
www.akshayud.me
,这会重定向到
akshayud.me
,并形成一个无限循环

要解决此问题,请从DNS中删除URL记录(这是我的首选解决方案),或者在web服务器级别修复从www到根目录的重定向。 这是我的wget输出(我仅使用URL记录IP来保证URL重定向记录的100%使用率):


我也有同样的问题,解决方案是在我的github CNAME文件中,我必须更改我的网页标题。因此,在我将其更改为“www.mywebpage.hu”(在没有“www.”之前)之后,就不再发生重定向问题。我已经检查了你的CNAME,而你也没有“www”。如果你用这个来完成你的标题,也许会有帮助。

我也遇到了同样的麻烦,就我而言

我如何修复:
错误在我的CNAME记录中。我将CNAME
www
指向我的github页面域(username.github.io),因此当我点击该域时,它会创建一个
github域->自定义域->github域的循环…
,因为github域会自动重定向到自定义域。将CNAME值更改为“我的自定义域”解决了此问题

尝试了此操作,但没有解决此问题此操作对我非常有效()
$ wget www.akshayud.me

--2017-12-19 08:03:18--  http://www.akshayud.me/
Resolving www.akshayud.me (www.akshayud.me)... 151.101.1.147, 151.101.65.147, 151.101.129.147, ...
Connecting to www.akshayud.me (www.akshayud.me)|151.101.1.147|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://akshayud.me/ [following]

--2017-12-19 08:03:18--  http://akshayud.me/
Resolving akshayud.me (akshayud.me)... 162.255.119.148
Connecting to akshayud.me (akshayud.me)|162.255.119.148|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.akshayud.me/ [following]

--2017-12-19 08:03:18--  http://www.akshayud.me/
Connecting to www.akshayud.me (www.akshayud.me)|151.101.1.147|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://akshayud.me/ [following]

--2017-12-19 08:03:18--  http://akshayud.me/
Connecting to akshayud.me (akshayud.me)|162.255.119.148|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.akshayud.me/ [following]

--2017-12-19 08:03:19--  http://www.akshayud.me/
Connecting to www.akshayud.me (www.akshayud.me)|151.101.1.147|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://akshayud.me/ [following]