Skip to content

Commit 937c7f4

Browse files
committed
docs(readme): document how to fix homepage redirects
1 parent 95d29d9 commit 937c7f4

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,19 @@ scp [email protected]:/path/to/wordpress.sql .
6363
docker exec -i jquerydb mysql -u YOUR_MYSQL_USER -p YOUR_MYSQL_DATABASE < wordpress.sql
6464
```
6565

66-
8. Visit http://local.jquery.com, or https://local.jquery.com if you created certs.
66+
8. A side-effect of loading data from production is that the `home` option is set. This means that the site will redirect to `jquery.com` instead of `local.jquery.com`. To fix this, set the `home` option in the `wp_options` table to `https://local.jquery.com`.
67+
68+
```sh
69+
docker exec -it jquerydb mysql -u YOUR_MYSQL_USER -p YOUR_MYSQL_DATABASE
70+
```
71+
72+
```sql
73+
UPDATE wp_options SET option_value = 'https://local.jquery.com' WHERE option_name = 'home';
74+
```
75+
76+
This also applies to jqueryui.com, but not to the other sites.
77+
78+
9. Visit http://local.jquery.com, or https://local.jquery.com if you created certs.
6779

6880
## Notes
6981

0 commit comments

Comments
 (0)