/redirect-headless-wp

"Empty" Wordpress Theme to redirect headless Wordpress Frontend

Primary LanguageCSSMIT LicenseMIT

About

This is an "empty" Wordpress theme you can install to redirect the headless Wordpress frontend while keeping the Admin login at /wp-admin and API endpoint at /graphql working.

How to use

For example, I created a headless wordpress site using https://www.wpgraphql.com.

Do the following:

  1. Open index.php and replace https://blog.mydomain.com with the URL you want to redirect to.
header("Location: https://blog.mydomain.com");
  1. Zip the folder and upload the zip as a Wordpress theme and activate it - that's it!

Credits