# Going live on villasatbluemountain.com

Staging verified clean first: all 10 pages return 200, zero stale demoing references,
Elementor CSS regenerated, hero video serving. Safe to propagate.

## READ THIS FIRST - the trap

**Both installs hardcode `WP_SITEURL` and `WP_HOME` in `wp-config.php`.** The panel flags it
on each one. That is why the live install reports its URL as `villas.webshoptci.com`: that
value comes from wp-config.php, not the database.

This matters because **UpdraftPlus rewrites URLs to whatever the target site thinks it is.**
If you restore onto the live install while wp-config still says `villas.webshoptci.com`,
UpdraftPlus will rewrite the entire site to webshoptci.com. Fix wp-config first.

## Steps

### 1. Correct wp-config.php on the live install
Panel > File Editor > `www/www/wp-config.php`. Set both to the real domain:

    define('WP_SITEURL', 'https://villasatbluemountain.com');
    define('WP_HOME',    'https://villasatbluemountain.com');

Save, then load villasatbluemountain.com and confirm the old real estate site still comes up.
If it does, the constants are right.

### 2. Get into the live wp-admin
Panel > WordPress Manager > `www/www` > WordPress administrators > click the arrow beside
`admin`. No password needed, no database editing.

### 3. Check UpdraftPlus is installed there
If not: Plugins > Add New > UpdraftPlus.

### 4. Upload and restore the same backup set
UpdraftPlus > Existing backups > Upload backup files. Use the same 2350 set from staging.
Restore, all components.

**Expect "Restore failed" again at the very end**, on
`wp-content/upgrade-temp-backup`. It is the same harmless leftover folder. Read up the log:
if the database, plugins, themes and every uploads archive say "Moving unpacked backup into
place", the restore worked.

### 5. Re-check wp-config.php
Confirm `WP_SITEURL` and `WP_HOME` still say `https://villasatbluemountain.com`.

### 6. The two known follow-ups
Exactly what you did on staging:

- **Elementor > Tools > Regenerate Files & Data.** UpdraftPlus rewrites the database but
  never files, and Elementor caches styling as physical CSS carrying absolute URLs. This is
  what fixes the missing images.
- **Better Search Replace**, searching the **bare domain** with no `https://` prefix, because
  URLs are stored with escaped slashes that a full-URL search will not match:
  - `villasatbluemountain.demoing.info` -> `villasatbluemountain.com`
  - `luxury.villasatbluemountain.com` -> `villasatbluemountain.com`

### 7. Verify
Home, the four villa pages, the four new pages, the real estate page. Check the hero video
plays, hero images load, the nav dropdown works, and a Book Now button reaches the booking
engine.

### 8. After it is up
- Point `rentals.villasatbluemountain.com` at the main domain (Panel > Redirect URL).
- Confirm search engine visibility is on: Settings > Reading.
- Change the admin email off `gab@adventurescape.com`.
- Confirm the enquiry form recipient, currently `reservations@bluemountain.tc`.

## Rollback

If it goes wrong: Panel > WordPress Manager > `www/www` > Backup > gear > **Restore** on the
1.5GB "Pre-launch snapshot" from 04:23 PM. You also have it downloaded locally.

## The alternative, if you would rather not restore again

The panel's Site URL dialog on the staging install offers **Copy** and **Move**, and the
subdomain dropdown includes `www`, which is the main domain. Copying staging to `www` would
do it in one operation. Two reasons I am not recommending it as the default: the target
directory already contains the old site, and it is not clear whether Copy refuses, overwrites
or merges. Merging two WordPress installs would be a bad afternoon. The restore route is the
one you have already done successfully.
