Mapping elastic beanstalk (wordpress blog) to subdomain - wordpress

So I have set up my static website via S3 and have attached it to my domain example.com.
Then, I have launched a separate wordpress blog via Elastic Beanstalk, let's say exampleblog.us-west-2.elasticbeanstalk.com.
I have already configured my CNAME settings in Route 53 such that blog.example.com maps to my elastic beanstalk site (exampleblog.us-west-2.elasticbeanstalk.com), except, once I start clicking around on the blog itself, the URLs all become exampleblog.us-west-2.elasticbeanstalk.com/NAME-OF-PAGE
How do I get a complete subdomain redirect? i.e., I want all of the pages in my blog to be in the form blog.example.com/NAME-OF-PAGE
Thanks!

Okay -- I have actually figured this out myself so just will share in case anyone else has the same question:
It's really simple - You just need to access Wordpress > Settings > General and then update your site address (URL) to your subdomain (in my case, blog.example.com).
Boom!

Related

Wordpress using differet domain

Hello I have the following environment:
Domain A (redirect to domain B) Apache server
Domain B (separate web server where is installed Wordpress) Apache server
So if I digit the url of domain A I see the homepage of Wordpress site.
My problem is that if I click any link in the website I will be redirected to the Domain B because the site use the permalink of the wordpress installation.
Is there any chance to use the domain A name as base URL?
thanks
sorry - this question is not clear. Did you migrate the site? Or are you making a copy? Are those domains different - or maybe subdomains. Maybe try to share those domains if they are live. Hard to help if it's not clear what the question is about.
I have installed wordpress under the domain:
www.domain-a.com
I have another domain:
www.domain-b.com
that is configured to point to every single page of domain-a
so if I point to URL: www.domain-b/example-page I can see correctly the wordpress page. My problem is that if I click on every link inside this page the permalink is cofigured for domain-a so I will be redirect to the url domain-a. I need to stay always inside the domain-b url.
Is there any wordpress configuration that I can do to solve it?
I cannot reproduce the environment because is under a VPN.
Thanks

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

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.

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.

Point existing domain to wordpress MU site on another server

How do we point existing domain to wordpress MU site on another server? Here's the setup.
Server A has WPMU installed, with network setup of subfolders. www.wpmuinstall.com/site1
Server B has a domain hosted on it.. www.clientdomain.com
We want to point www.clientdomain.com from ServerB to ServerA www.wpmuinstall.com/site123
If above is not possible, we can switch to site1.wpmuinstall.com but then how do we point this site1.wpmuinstall.com to the siteid1 ? We have the WordPress MU Domain Mapping plugin installed but the WPMU is still setup as subfolders.
Please advise on how to accomplish client domain pointing to our wpmu site. Ideally we want to setup something like wordpress.com with custom domains pointing to subsites.
Thanks
If you are working with paths, install Wordpress Domain Mapping plugin and follow the steps described on this article. It will let you map a domain to a path in your server.
If you are using subdomains, then:
Add the desired subdomain to a site.
Point www.clientdomain.com to your wordpress server.
On your server, add the domain www.clientdomain.com and make it point to your wordpress installation.
Wait until DNS changes take effect.
Your site should be ready.

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