我正尝试将所有请求重定向到:
I'm trying to redirect all requests to:
example www.example example到www.example.我正在使用Heroku和Namecheap.
to www.example. I'm using Heroku and Namecheap.
这是我的步骤:
通过这些步骤,只要我将http请求重定向到服务器端的https请求(例如,将www.example/重定向到www.example/),一切都将正常工作.
With these steps, everything works well as long as I redirect http requests to https requests on the server side (e.g. redirect www.example/ to www.example/).
我唯一不知道的事情是如何将example重定向到www.example.根据我的阅读,看来这是ALIAS记录可以完成的工作.不幸的是,Namecheap似乎没有这种类型的记录.
The only thing I can't figure out is how to redirect example to www.example. From what I've read, it looks like this is what an ALIAS record could accomplish. Unfortunately, Namecheap doesn't seem to have this type of record available.
是否可以使用Namecheap获得此行为,还是必须使用其他DNS提供程序?
Is it possible get this behavior using Namecheap, or do I have to use a different DNS provider?
推荐答案对于仍然存在此问题的任何人,我都找到了Namecheap解决方案,用于将根域重定向到子域.
For anyone that is still having this issue, I found a solution with Namecheap for redirecting the root domain to a subdomain.
这会将我的根域重定向到我的子域.
This redirects my root domain to my subdomain.
更多推荐
将https://example.com重定向到https://www.example.com:Namecheap和Heroku
发布评论