Suraj Shende
Suraj Shende

Reputation: 329

Serving React App and WordPress Blog from Same Domain Using CloudFront - WordPress Admin Issues

Environment

Current Setup

Desired Outcome

Issue When setting up CloudFront behavior for /blog/* to route to WordPress origin, the WordPress admin panel functionality breaks. Specifically:

What I've Tried

  1. Added CloudFront origin pointing to WordPress installation
  2. Created behavior pattern for /blog/* to route to WordPress origin
  3. WordPress installation is functioning correctly when accessed directly

Questions

  1. How can I properly configure CloudFront to handle both React app and WordPress admin functionality?
  2. What's the correct way to handle WordPress internal API calls in this setup?
  3. Are there specific WordPress settings or configurations needed for this setup?

Additional Context

Upvotes: 0

Views: 21

Answers (0)

Related Questions