ClaudiusAyadi / redirect-headless-wp

"Empty" Wordpress Theme to redirect headless Wordpress Frontend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

"Empty" Wordpress Theme to redirect headless Wordpress Frontend

License:MIT License


Languages

Language:CSS 77.1%Language:PHP 22.9%