Developer Guide

WordPress Multi-Site Deplyment

IMPORTANT – TAKE A BACKUP OF THE SITES DATABASE BEFORE ACTIONING THE BELOW The following will guide you to getting a WordPress multi-site deployed to staging or live. Make sure that you have the follwing plugin installed. WP Migrate DB – https://en-au.wordpress.org/plugins/wp-migrate-db/ When installed and activated. Head over to Network Admin -> Settings -> Migrate […]

cPanel Redirect Old to New Site using htaccess

The below instructions will guide you through redirecting an old site to a new site using htaccess. For illustrative purposes the information below is based on: Old Domain – cuc.org.au New Domain – www.cuc.edu.au If they have an IT company in charge of the domain name, best to hand this to them to configure otherwise […]

Version Control

NEVER COMMIT ON THE SERVER   For version control 372Digital uses Bitbucket. Before a Deployment, the DEV branch is used During Development the DEV branch is used alongside the STAGING branch The MASTER branch is reserved for the live site Commits Should Be reasonably small only to contain the required code for the single unit […]

JA Theme Setup Documentation

JATheme Dependencies WordPress Dependencies WordPress – Tested up to 5.2.4 PHP – Tested up to 7.1 Node Version Manager (NVM) curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh | bash This command will add the snippet below to ~/.bashrc or ~/.bash_rc or ~/.bash_profile or ~/.zshrc export NVM_DIR=”$([ -z “${XDG_CONFIG_HOME-}” ] && printf %s “${HOME}/.nvm” || printf %s “${XDG_CONFIG_HOME}/nvm”)” [ -s “$NVM_DIR/nvm.sh” ] && […]

WordPress Site Transfer From a ‘wp-content’ Folder Backup to cPanel

Things to note When you change the input fields in Setting  > General  they will not change  the urls in embedded content (ie. post_meta). This means that some internal links will redirect to the live site when clicked, only after the domain has fully propogated will the embedded urls work properly If the location of […]

Disabling a Staging Website

Brief The staging website is usually hosted on the same server as the live website, usually as a sub-domain Disabling a staging website when no longer required can be accomplished in several ways Deleting all related files to staging Altering the password to staging so that the client cannot access it Removing / altering the […]

Updating a WordPress Website

You will need to check if updates exist on the server by SSH’ing into the server If updates exist you will need to get these changes down stream by firstly creating a new branch [server] Checkout to this new branch [server] Add the changes to the new branch [server] Commit these changes the new branch […]

SSL Certificate Not Working Checklist

1. Check the images on the website and all the URL’s defined in the code or configuration. 2. Change the image links and URL’S 3. Make sure the images or the contents that the website is accessing are configured on the same server. 4. If we just setup the website from local/staging, it will still […]

SSL Certificate .htaccess Redirect

After SSL certificate is installed, add this into .htaccess to redirect http to https RewriteEngine on RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://example.com/$1 [R, L]