Mapping custom domain to the openshift wordpress blog

£可爱£侵袭症+ 提交于 2019-12-10 03:45:49

问题


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.


回答1:


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.




回答2:


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




回答3:


Follow this article. it's step by step manual http://www.devua.co/2016/05/20/how-to-run-blog-on-openshift-complete-guide/



来源:https://stackoverflow.com/questions/22962183/mapping-custom-domain-to-the-openshift-wordpress-blog

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