Migrate Wordpress to AWS (Amazon Web Server) video

Watch the below video for step by step instructions.

More instructions can be found here: https://aws.amazon.com/getting-started/tutorials/launch-a-wordpress-website/

Using Putty for AWS: https://docs.bitnami.com/virtual-machine/faq/#connecting-with-an-ssh-client-on-windows

Importatnt links:

For updating DNS on AWS: https://console.aws.amazon.com/route53/home?#

 

Important commands via Putty:

To remove the Bitnami banner: sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1

 

To set www redirect so that the website always loads in www:

Type: sudo nano  /opt/bitnami/apps/wordpress/conf/httpd-prefix.conf

to edit the httpd-prefix.conf file

 

Enter:

# redirect from non www to www

#################################################################################

RewriteEngine On

RewriteCond %{HTTP_HOST} !^www\. [NC]

RewriteRule ^(.*)$ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

 

To the end httpd-prefix.conf file.

Save file by CTRL X followed by Y for Yes and Enter

Restart Apache:  sudo  /opt/bitnami/ctlscript.sh restart apache


Print   Email

Related Articles