Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 67836

Diable wp-login.php 404 error – better plan?

$
0
0

Replies: 0

Hey – wanted to get an opinion.
I want users to login and register on the TML pages.
But there are links on my site to /wp-login.php all over the place.
If i use the disable wp-login.php option it breaks all those links.

Would there be any downside or problem in putting this code at line 100 on modules/security/security.php?

if ($_REQUEST['action'] == "register")
{    wp_safe_redirect( "/register"); exit;
}
wp_safe_redirect( "/login"); exit;

That way instead of 404 it redirect to the TML page.
Also is there any way to know the correct url for the TML logon page in case someone changes it from /login and /register ?


Viewing all articles
Browse latest Browse all 67836

Trending Articles