7

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.

Karthikeyan
  • 2,064
  • 3
  • 24
  • 44

3 Answers3

6

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.

  • i just changed the wordpress url from General settings of my admin.Found it works fine.Thanks for the response. – Karthikeyan Apr 09 '14 at 16:20
  • 1
    thanks it worked like a charm , but now when I go to login or new registration google warn page unsecure , certificate doesnot matches url , I have not installed any new certificate , but default of openshift that comes on all subdomains – geniushkg Apr 08 '15 at 03:40
3

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

Ajit Goel
  • 3,264
  • 3
  • 42
  • 77
0

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

Diyko
  • 378
  • 1
  • 8
  • 27