Redirects to root folder when installed in subfolder
-
Hi, I think the plugin redirect function does not cover a possibility of placing WP install to subfolder. I have an example website http://xyz.tld/wpinstall/ and set a secret login slug to “loghere”, with /wp-admin/ redirect set to “you-cant-log-here”.
Going to http://xyz.tld/wpinstall/wp-admin redirects me to http://xyz.tld/you-cant-log-here … and that’s obviously wrong.I think the code:
wp_safe_redirect( '/' . get_option( 'rwl_redirect_field' ) );Should be:
wp_safe_redirect( home_url( '/' . get_option( 'rwl_redirect_field' ) ) );… or something similar.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Redirects to root folder when installed in subfolder’ is closed to new replies.