Is it possible to set Featured Image using HTML?

The Amazon affiliate program does not let you download images from their site and upload it via their server. One authorized way of using images from Amazon is to use their API or Sitestripe. For new affiliates that haven't made any sales yet, we are only allowed to use Sitestripe. Sitestripe pulls the image from the site, however the image comes in the form as an html code. Would it be possible to set featured image using said HTML code …
Category: Web

How to Cache All WordPress Assets via CloudFront

I am using Amazon Cloudfront to cache my WordPress site, with the following steps: My site is https://www.example.com I use Duplicator to create a package for my site. I launch a EC2 instance in Amazon. I add the following A record in example.com's DNS zone: origin.example.com -> IP of the EC2 instance. I install a Let's Encrypt certificate for origin.example.com on the EC2 instance so that I can access the website via https://origin.example.com I start Duplicator installer in origin.example.com and …
Category: Web

How to prevent redirection from non-www to www or vice versa?

In WordPress, it seems that if I define: define('WP_SITEURL', 'https://www.example.com'); define('WP_HOME', 'https://www.example.com'); Then all non-www version such as https://example.com will be redirected to www version and the response header will be: X-Redirect-By: WordPress This is OK for general cases. However, now I want to prevent such a redirection, because I am using Amazon Cloutfront and the redirection should be stopped, otherwise, there will be error. See https://stackoverflow.com/questions/20503322/cloudfront-distribution-with-custom-origin-redirects-request/22571467#22571467 So how to prevent the redirection?
Category: Web

All-in-one-migration

I just took over a WP site that uses EC2. I am trying to create a new instance using Wordpress By Bitnami to make it easier to handle files for people who don't know AWS. I am trying to test this on my own account before I do it for my company. I create the new WP and import the old one. However, it signs me out and asks for admin logins. I know the logins are the same as …
Category: Web

Getting 404 Hits on URI -/-/-/-/-/-/-/-/-/- . How to deal

how to deal with the above issue. WordPress website hosted on AWS EC2 Bitnami URI-/-/-/-/-/-/-/-/-/- User-Agent Chrome 80.0.3987.163 | Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36 2021-06-06 06:54:33 URI -/-/-/-/-/-/-/-/-/- User-Agent Firefox 62.0 | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0 2021-06-06 06:51:29
Category: Web

How can I view or FTP into my Wordpress site hosted on AWS?

If this is the wrong site for this, I apologize. I am not a Wordpress developer, but I have a small bit of WP experience. Does anyone know how I could view the file tree of a Wordpress site hosted on AWS? I am trying to migrate a Wordpress page for a non-profit from AWS to another hosting service. Unfortunately, AWS console is clogged with dozens (hundreds?) of non-descriptive product names, and something like viewing your hosted files is not …
Category: Web

How to run WordPress across 2 VMs for high availability

Microsoft Azure requires that applications utilize two instances across multiple data centers in order to achieve their "high availability" SLA and ensure your sites don't go down for routine maintenance. They even tell you which pairs of data centers will never go for maintenance at the same time. That's all well and good but how would you do this easily in practice for an app like WordPress with a MySQL database on the same VM? I'm no stranger to load …
Category: Web

How to put wordpress site behind AWS load balancer

We have an old wordpress site hosted on an AWS EC2 linux server that I am trying to put behind a load balancer so I can use HTTPS and WAF. I am a somewhat experienced sysadmin but am very new to wordpress. I am having trouble getting the content to load over HTTPS while at the same time not getting into a redirect loop between the load balancer and the server. I have the load balancer setup to talk to …
Category: Web

WordPress hosted on AWS EC2

I have a client who has a WordPress site on AWS. I'm wondering if I update WordPress core and plugins do I need to create a new AMI based on the current instance, create a new launch configuration using the new instance for the auto-scaling group? Do I then delete the old instance? I've tried reading the AWS documentation but it's not clear to me. Any help appreciated!
Category: Web

Why does Wordpress uses HTTPS for JS, CSS on EC2

I have migrated Wordpress site to EC2. Domain changes done in wp-config.php & in DB tables Also set AllowOverride All in Apache sites default conf. Issue is: Even though nowhere I'm using force SSL, still, on page load all assets are loaded with https. Since, I dont have SSL certificate active, all those resource show ERR_CONNECTION in Browser Console. As a result, The Pages also do not render properly
Category: Web

Pointing route 53 dns to wordpress site in AWS ec2

I need help with WordPress site on EC2 which I have pointed to route 53 DNS name. I am able to access the Wordpress site through the new DNS but other links are still going with the instance name. Can you please help me with how to convert all the links to the new domain name. For example: EC2 Wordpress site: http://ec123-3-54-45-21.compute-1.amazonaws.com/ Domain name: myblog.com I have already pointed my myblog.com(route 53) to Wordpress site(http://ec123-3-54-45-21.compute-1.amazonaws.com/) and it works fine. I …
Category: Web

Can't Reach wp-admin

When visiting wp-admin at the link http://ec2-3-16-54-250.us-east-2.compute.amazonaws.com/wp-admin, I get the below URL http://ec2-3-16-54-250.us-east-2.compute.amazonaws.com/wp-admin/ec2-3-16-54-250.us-east-2.compute.amazonaws.com/wp-login.php?redirect_to=http%3A%2F%2Fec2-3-16-54-250.us-east-2.compute.amazonaws.com%2Fwp-admin%2F&reauth=1 I am coming from a direct database transfer from localhost to server. I went into wp-options and changed the option_value in wp_options to reflect that of the current live. See below. option_id: 1 option_name: siteurl option_value: ec2-3-16-54-250.us-east-2.compute.amazonaws.com autoload: yes *************************** 2. row *************************** option_id: 2 option_name: home option_value: ec2-3-16-54-250.us-east-2.compute.amazonaws.com autoload: yes I just replaced the localhost values, though it seems I've done something incorrectly. I have not …
Category: Web

Making a development site live, on Amazon EC2

I currently have a live site hosted as an Amazon EC2 instance and have been working on a new site (in a development environment) also on an EC2 instance. The new site is ready to be pushed live but I am unsure how I would approach this. I am not overly familiar with Amazon as I am picking up from a previous developer who set all the hosting and instances up. The live and dev sites are running on the …
Category: Web

How to run wordpress site on "mysitewp.com"?

I have created one windows instance at amazon lightsail.There I have installed wordpress using IIS. Now I want to run my wordpress site on a the following name: "mysite.com" . I have added this on wp_config.php file. But when I was trying it through browser it is providing the following error: This site can’t be reached mysitewp.com’s server IP address could not be found. Try running Windows Network Diagnostics. DNS_PROBE_FINISHED_NXDOMAIN How can i solve it?
Category: Web

Is this the right set of records for Route53 domain to point to a mapped domain in a multisite?

My question is about whether I have the right record sets on Route53 for a mapped-domain. I have a domain at Route53 called domain.org. I have a multisite setup at mult.com. There is a subdomain sub.mult.com on that multisite. I have added a mapped domain, domain.org to be the fqdn for that sub domain. I have a letsencrypt wildcard on mult.com and it handles all the subdomains. But for each mapped domain I have to add in the SSL. When …
Category: Web

Hosting a Wordpress blog as a sub folder from a S3 website

I have a website set up for my organisation under www.mycompany.com (running on Amazon S3). I also have a Wordpress blog set up under blog.mycompany.com (running on a separate LAMP server). For SEO purposes, our marketing department has asked to set up www.mycompany.com/blog to go to our blog main page. Our website is currently hosted on an Amazon S3 bucket, behind Amazon Cloudfront. I have managed to set up S3/CloudFront redirections successfully so that a basic redirection happens automatically, e.g.: …
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.