Used CloudFormation to create Wordpress blog but domain doesn't show up properly - wordpress

I used AWS CloudFormation to create a Wordpress blog and then bought a domain from GoDaddy website and forwarded it to the domain name provided by CloudFormation
-->godaddy domain: yetanotherdeveloper.in
-->cloudformation domain: "ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/"
Problem 1:
When I search GoDaddy domain in the URL, I get to the site but then only CloudFormation domain is shown in the URL. I want the GoDaddy domain to be there.
When I open a post, before the slash in the URL, cloudformation domain is shown.(e.g. ec2-35-154-134-194.ap-south-1.compute.amazonaws.com/wordpress/index.php**/2017/09/27/hello-world/**) .I want godaddy domain to be there for ease of access for others.
Problem 2:
Cloudformation uses a public IP which could be dangerous in future in case the server gets down etc. So, i want to change the IP to elastic IP too.
This is after the site is loaded,i get old domain shown
This is when i open some other page or in this case, a post. Here also old domain
one last thing, i hope i'm not wasting much time of yours. If i am, it would be great to point out what i did wrong in this question and i will improve next time.
Thank you!

Regarding the URL, you need to set the root URL on the WordPress configuration to http://yetanotherdeveloper.in, and regarding Elastic IP, you need to update the Cloudformation template to create an EIP and link it to the created instance.
Best regards.

You will likely need to change your site URL in the WordPress configuration:
On the Settings->General screen in a single site installation of
WordPress, there are two fields named "WordPress Address (URL)" and
"Site Address (URL)". They are important settings, since they control
where WordPress thinks your site is located. They control the display
of the URL in the admin section of your page, as well as the front
end, and are used throughout the WordPress code.

Related

I can't get the domain mapping working for a Wordpress blog deployment on the Google Cloud

I've followed this tutorial here. There are two options mentioned in the tutorial 1. WordPress Bitnami instructions and 2. WordPress Click-to-deploy instructions. I used the second option because that appears easiest to do. I followed other tutorials to do domain mapping management and it works for my main website but for some reason not for the blog. It actually looks like the administration steps taken below led Google to do some mapping automatically:
In these instructions of the tutorial I followedr, you go to the wp-admin page and that works fine and Wordpress is installed perfectly well and humming along. Then it says to simply add your domain address with www. and .com in a form (Settings > General) (in my case, www.blog.collectiwise.com). I did that and a message appeared that the new setting was now saved, in green, so I assumed now I can go to my website and see the WP blog stem, but unfortunately I'm redirected to a Virgin Media page that says it can't find "www.blog.collectiwise.com". What am I missing?
You have created a subdomain zone, as per whois your domain "collectiwise.com" is using:
ns-cloud-b1.googledomains.com
ns-cloud-b2.googledomains.com
ns-cloud-b3.googledomains.com
ns-cloud-b4.googledomains.com
Since this is different from your whois info, I assume you are managing collectiwise.com and blog.collectiwise.com separately, so there are 2 options:
Create blog.collectiwise.com and www.collectiwise.com in the same zone you already have for collectiwise.com.
or
If you want to handle DNS zones separately then you must add the following NS registries to your main TLD domain collectiwise.com for blog.collectiwise.com:
ns-cloud-c1.googledomains.com
ns-cloud-c2.googledomains.com
ns-cloud-c3.googledomains.com
ns-cloud-c4.googledomains.com
That way clients requesting any DNS information such as blog.collectiwise.com will be redirected by your TLD domain into your GCP public DNS subdomain zone.

Changing the Domain for Wordpress Install

I have a domain, www.mysite.com, which is registered at NETWORK SOLUTIONS, LLC. and currently points to a hosted page at a 3rd party.
I have created a new wordpress page on Hostgator, and I created it using the domain www.mysite.biz.
I want to now point www.mysite.com to the new page on hostgator but without redirecting.
I believe what I need to do is:
change the www record on Network Solutions to the IP address on Hostgator.
I believe There is a plugin I can us to change the domain for all of the wordpress database.
Are these the correct steps? What is the plugin name I can use to change the domain?
Here is a plugin I've used to change a domain name in wordpress. https://wordpress.org/plugins/go-live-update-urls/
When you say you want to point www.mysite.com to your new wordpress site "without redirecting", are you saying you want to use www.mysite.com as the new domain name? If so, you're going to want to go into your account with NETWORK SOLUTIONS, LLC and enter in hostgator's nameservers. See here: Network Solution Link and here: Hostgator Link

pointing domain to wildcard sub sub domain

I have a multisite wordpress install at plataforma.vendamais.pt
And I have a wildcard for *.plataforma
So all new sites created have this url:
client01.plataforma.vendamais.pt
client02.plataforma.vendamais.pt
and so on.
I need to connect my client's domains to the correspondent website, so the url client01.plataforma.vendamais.pt wont be visible.
As a real case, I have a client's website here:
www.tancredoferrari.plataforma.vendamais.pt/
I need to have his domain tancredoferrari.pt pointing to that address, so his clients will navigate using tancredoferrati.pt and wont see any of the www.tancredoferrari.plataforma.vendamais.pt url.
Is it possible?
There's 2 options here:
Option 1
An CNAME record on the live domain's DNS should be sufficient to do this - so long as you're happy that the resource requests (images, scripts, styles and so forth) behind the scenes are going to the staging domain URLS (client02.plataforma.vendamais.pt and so forth).
Option 2
Check out the wordpress plugin WordPress MU Domain Mapping. With that you can map the site to multiple domains (and set the primary), which is a better approach.

Mapping custom domain to the openshift wordpress blog

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.
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.
You need to go to
Settings=>General=> Site Address(URL),
Settings=>General=> wordpress address(url)
and update it to your custom domain.
Follow this article. it's step by step manual http://www.devua.co/2016/05/20/how-to-run-blog-on-openshift-complete-guide/

Wordpress Multisite: Mixing IPs, domains and URL Proxies

Our company is trying to transition to WordPress Multisite but we have several issues working against us at the moment. We host WP outside our server environment (we use Amazon for our WP sites) so we actually have to use an URL proxy to our Amazon servers. The other issue is that we needed to install Multisite in the root of the folder so the domain is http://100.10.20.30/foldername but we can't proxy that to http://www.domain.com/foldername because that is a live site that we're not moving to WP any time soon. So, of course, the problem we're running in to is that the IP is showing up not only in the source code but in Google now as well (which we don't want).
Does anyone know of anything we can do to keep the IP out of the source code/Google? I was thinking about rewrite rules in the htaccess file but didn't want to do anything until I had some better ideas.
Also, I can't use the domain mapping plugin that everyone seems to suggest for this type of issue because our sites aren't hosted in the root of our server (a prerequisite for the plugin).
So to break it down, this is what we need:
Multisite Parent Blog <-- This has to be the IP address
Multisite child blogs <-- Domain name but when we set the actual proxied domain name in the settings we get a 404 error because it's not looking in the right place. It's looking for an actual folder on our internal servers.
Thanks!
Found the solution myself. Posted below:
In the Multisite dashboard, click on "All Sites" then administer the specific site.
Under the "Path" field, you'll need to deselect the "Update siteurl and home as well."
Save changes.
Click on "Settings" tab.
Change the URL in the following fields: "SiteURL" and "Home"
Save changes.
When all is said and done, the IP is showing in the "Info" tab but it changes the URL in the source code to your domain.

Resources