M
M
Mikhail Lebedev2021-09-08 21:42:19
WordPress
Mikhail Lebedev, 2021-09-08 21:42:19

Make main page wp-signup.php?

How to set wp-signup.php home page in wp?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
Zettabyte, 2021-09-09
@Zettabyte

You have a noticeably non-standard task, so I'll start my answer with "try it."
Try wp-config.phpadding the following lines:

define( 'WP_HOME', 'https://VashSite.ru/wp-signup.php' );
define( 'WP_SITEURL', 'https://VashSite.ru/wp-signup.php' );

It is possible that only one of them - here it will be necessary to experiment.
You may also need a line
define( 'NOBLOGREDIRECT', 'https://VashSite.ru/wp-signup.php' );

or it is the same, but empty, or maybe this line, on the contrary, will need to be deleted or commented out. UPD: In the comments under this answer, I added an assumption about
define( 'NOBLOGREDIRECT', '' );
'NOBLOGREDIRECT'

A
Artem Zolin, 2021-09-09
@artzolin

You can just redirect unauthorized users

add_action( 'template_redirect', 'redirect_non_logged_users' );
function redirect_non_logged_users() {

  if ( is_home() && !is_user_logged_in() ) {
    wp_redirect( wp_login_url(), 301 );
  }

}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question