Just tried the following and now when I click on “View Site” it redirects to the live site on my production server:
- Backup the database.sql file in the sql folder.
- Drop all the tables in Adminer as suggested in the comments of this post.
- Try the command line again - still doesn’t work.
- Manually import the database in Adminer from my backup.
Fortunately the databases should be the same, but still is there something I can do to fix this, and the rest of my sites that also give a 403 error?