Diable wp-login.php 404 error – better plan?
-
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 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Diable wp-login.php 404 error – better plan?’ is closed to new replies.