How can I change change links to point to custom domain on Azure Webites

为君一笑 提交于 2020-01-15 03:25:21

问题


I bought a custom domain from godaddy and made a wordpress blog with Azure Websites. Everything worked fine, my custom domain name is working but I have a small problem.

Let's say that my custom domain name is "azuresite". Well, I have the domain "azuresite.com", but when I go to the website and I click on a link (let's say the about page), it goes to azuresite.azurewebsites.com/about instead of going to azuresite.com/about

Do you have any idea what should I do to make the links point to my custom domain instead of the azurewebsites domain?

Here are two screenshots that may help you to better understand the problem: GoDaddy Zone file: http://prntscr.com/2ida3c Screenshot of my website: http://prntscr.com/2idaqg


回答1:


It turns out that I just had to go to wordpress settings and change my site address from mydomain.azurewebsites.net to mydomain.com. Here's a screenshot: http://prntscr.com/2kjwzp



来源:https://stackoverflow.com/questions/21099949/how-can-i-change-change-links-to-point-to-custom-domain-on-azure-webites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!