Update Database Links to relative paths
SET SQL_SAFE_UPDATES = 0;
UPDATE bookstackapp.images SET URL= REPLACE(REPLACE(url, 'http://wiki.yourdomain.com', ''),'https://wiki.yourdomain.com','')
UPDATE bookstackapp.settings set value = REPLACE(value, 'https://wiki.yourdomain.com', '') where value like '%wiki%'
UPDATE bookstackapp.pages set html = replace(html, 'http://wiki.yourdomain.com', '') where HTML LIKE '%wiki%';
UPDATE bookstackapp.pages set html = replace(html, 'https://wiki.yourdomain.com', '') where HTML LIKE '%wiki%';