@mamaslt
Duplicate of this topic.
Website hosted at 1&1 UK ?
dwinden
Hello. No it’s not 1&1. And don’t really see the connection between hosting provider and website slugs.
@mamaslt
Ok so let’s try and get a better understanding of this.
In a vanilla WP env the WP Dashboard login screen can only be accessed using the following default slugs:
- wp-admin
- wp-login.php
- login
- admin
- dashboard
Notice wp-login is not included in the list.
So where does that slug come from ? Perhaps you can ask your hosting provider … Unfortunately there was no definitive answer to this question in the other topic …
But it seems it is related to the Apache env as configured at your hosting provider … I’m not saying it is but it would fit the picture …
dwinden
Maybe we should ask the wordpress authors if /wp-login is included somewhere in a code or not?
@mamaslt
It’s not. Check in the wp-includes/canonical.php file:
/**
*
* @global WP_Rewrite $wp_rewrite
*/
function wp_redirect_admin_locations() {
global $wp_rewrite;
if ( ! ( is_404() && $wp_rewrite->using_permalinks() ) )
return;
$admins = array(
home_url( 'wp-admin', 'relative' ),
home_url( 'dashboard', 'relative' ),
home_url( 'admin', 'relative' ),
site_url( 'dashboard', 'relative' ),
site_url( 'admin', 'relative' ),
);
if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $admins ) ) {
wp_redirect( admin_url() );
exit;
}
$logins = array(
home_url( 'wp-login.php', 'relative' ),
home_url( 'login', 'relative' ),
site_url( 'login', 'relative' ),
);
if ( in_array( untrailingslashit( $_SERVER['REQUEST_URI'] ), $logins ) ) {
wp_redirect( wp_login_url() );
exit;
}
}
As you can see ‘wp-login’ is not recognized as a default WP Dashboard URI.
dwinden
So… What do we do? 🙂
I think I will try this: WPS Hide Login. Do you have any comments on that one?
Also I noticed that “Add New” plugin does not show plugins available online anymore. It gives me this:
An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums.
Any ideas?
yes. WPS Hide Login works as expected. So if they can do it so should iThemes…
@mamaslt
What you should do is contact your hosting provider and ask them for an explanation of the wp-login slug …
I guess the “unexpected error occurred” issue was either a temporary WP WordPress.org or internet connection issue …
I think adding a single RewriteRule line (as described in the other topic) to the .htaccess file is the simplest solution.
Mimimum impact, maximum result.
So I guess this topic can be marked as ‘resolved’…
dwinden