OpenShift custom domain not working for internal pages - openshift

I purchased a domain (iwantmydomain) and it points to an openshift application, main page loads and status bar shows the custom domain, but when I click a post then it shows the openshift url.
www.alrazylabs.com
I tried to follow:
https://www.openshift.com/blogs/domain-names-and-ssl-in-the-openshift-web-console

At the moment it looks like everything is working fine. Usually if a wordpress blog's links are pointing to the wrong url (the .rhcloud.com one) it means that you did not change the url in the wordpress admin to your custom domain.

Related

Is it possible to add gatsby blog on a subdomain to pre existing gatsby site?

My question is:
I want to create a gatsby site (the main section of the website). I also want a gatsby run blog with netlify CMS (which is what the site will be hosted with) on the subdomain blog.site.com.
Is this possible? What would I need to research/know to make this happen? For the domain, I will use google domains if that information is needed.
You just need to create two different Gatsby sites:
1 for the main section of your site
1 for your blog
On Gatsby's side, you don't need any extra configuration (not even pathPrefix), is just a regular site. The configuration must be done in the server (Netlify) adding each site to a custom domain.
Regarding the Google domain, you will only need to add the proper DNS in each server. You may find this article insightful: https://medium.com/#jacobsowles/how-to-deploy-a-google-domains-site-to-netlify-c62793d8c95e

How to direct a domain to subdomain (Next.js + ZEIT)

I have a web platform where each user has a profile, eg. domain.com/user/morgan.
I'm using Next.js, and by detecting either req.headers.host or window.location.host on the index page, I can serve up that same profile page on morgan.domain.com.
Now I want to allow users to choose their own domain name, and have it point to their profile page. I've managed to point mycustomdomain.com to domain.com, but I can't work out how to point it to morgan.domain.com.
Or perhaps it is connecting properly to morgan.domain.com but my Next.js code (which detects literally from the URL what the subdomain is) cannot work out that it's a subdomain.
In any case, is it possible with ZEIT and Next.js, to have mycustomdomain.com point to morgan.domain.com and have the page realise that this is a subdomain, and it should serve the user profile page and not the domain.com homepage?

How to setup https with a .dev domain on GCP

So I am currently trying to setup a static website by using Google Cloud Platforms and Google Domains. I have my domain already purchased and I added the following to my domains custom resource records.
www | CNAME | c.storage.googleapis.com.
I then created a bucket for my .dev domain. Then I added my html index file and some javascript files to that bucket. I made all of my files public and set the main page to my index.html file. After doing all of that I went back to my Google Domains overview and clicked website. This showed me a preview of my webpage loaded. I clicked it to go to my website but I am greeted with a privacy error.
NET::ERR_CERT_COMMON_NAME_INVALID
I am guessing that it is because my website is not using https. If I look in the advanced part of the error it says that my website is using HSTS. So my question is how do I change my website to use HTTPS instead of HSTS? Also, does this only happen to .dev domains?

How do I persist custom subdomains in firebase hosting without redirects

I've set up my custom domain with firebase hosting using their CNAME and A record details. Visiting http://sub.example.com redirects to https://example.com (not what I wanted)
I want to persist my subdomain (https://sub.example.com) in the address bar without the 301 redirect to (https://example.com) that I'm currently getting. Is this possible to set up this behavior within firebase hosting itself? I'd also like to point this sub domain to a certain html file/directory that I configure.

Given URL is not allowed by the Application configuration. when using the Facebook Javascript SDK

Im currently using the Facebook Javascript SDK and I keep running into the following problem that appears in the console:
Given URL is not allowed by the Application configuration.: One or more of the given URLs is not allowed by the App's settings. It must match the Website URL or Canvas URL, or the domain must be a subdomain of one of the App's domains.
I've read a truck load of related posts but still can't get it to work. I am working locally using the following: http://localhost:8080/bookbayapp/. In my facebook developers app section I have the following:
But once again nothing seems to work. I am currently using Google Chrome for the testing and it is worth to mention that I am using the Facebook Plugin for Phonegap but when testing I comment out the link the to plugin js so I assume in doing this there shouldn't be any problems?
What works for me is using the actual URL of the production server, and then adding a line to the hosts file that redirects all traffic from that URL to localhost.
Let's say your website is called potatoes.com. In "Site URL" write:
http://potatoes.com/bookbayapp
and then open your hosts file (C:\Windows\System32\drivers\etc\hosts) and add the following line:
potatoes.com 127.0.0.1