Mapping custom domain to the openshift wordpress b

2019-04-25 11:48发布

I have an openshift wordpress blog running at http://blog-example.rhcloud.com/ and added CNAME records in my DNS management as follows.

example.com
www.example.com

and works fine. When i type, this leads to my blog home page.But the pages and links in the blog actually leads to openshift naming space. i.e., blog-example.rhcloud.com/?page_id=7

I just want to mask blog-example.rhcloud.com/ to example.com every where in my app.I would be happy to provide further information if any thing required to analyse the issue.

PS: I bought the domain from Big Rock and using their console for CNAME entry.

3条回答
叛逆
2楼-- · 2019-04-25 12:07
够拽才男人
3楼-- · 2019-04-25 12:10

You need to go to Settings=>General=> Site Address(URL), Settings=>General=> wordpress address(url) and update it to your custom domain.

enter image description here

查看更多
萌系小妹纸
4楼-- · 2019-04-25 12:33

You need to go into your WordPress admin and change the url on the settings or options page to use your custom domain instead of the app-domain.rhcloud.com one. If you want to change it directly in the database (which i don't recommend) it is in the wp_options table under home and siteurl i believe... But I DO recommend using the WordPress admin.

查看更多
登录 后发表回答