Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

How to disable login and registration pages?

Here is the right answer :

Redirect 301 /register /login-register

It works without quotation marks.

And no need to use absolute path (the entire address), except if the redirection goes to another domain. If this is your case, do this:

Redirect 301 /register https://example.com/login-register

Also, I didn’t redirect /wp-login as it caused some issues (inability to log in)

FYI : 301 = permanent redirection, 302 = temporary redirection

Source

Related Posts:

  1. Restrict Access to wp-login.php
  2. Redirect user after login/registration globally
  3. How do I redirect a user when he is logged in after clicking on a menu
  4. How to modify the Register link in the login page?
  5. Login/Register redirect user with message
  6. Redirect User to login page
  7. Why I am not able to direct user to my blog section without login?
  8. Redirect user to original url after login?
  9. Login redirect to previous page
  10. Redirect to referring page after logging in
  11. check first time login only
  12. How to change the default logout link on WordPress Admin
  13. How to redirect a sucessful registration to a page template?
  14. How to redirect after login, the working way?
  15. Password change when the user login first time
  16. Custom login form redirect to external site
  17. handling login/logout redirects
  18. Redirect to custom url when registration fails?
  19. Using `auth_redirect` : keeps asking me to login even when I’m logged in
  20. Redirect to custom URL after registering from a page with registration form
  21. Redirect users after first login
  22. Redirect to current page after wordpress login
  23. wp-login.php — redirect logged in users to custom URL
  24. Redirect to login page
  25. How to redirect action=register link on the lostpassword page to a different link?
  26. You do not have sufficient permissions to access this page
  27. Redirect user after logout
  28. how to do logout redirect to current url
  29. How to redirect user to specific page based on the input password
  30. Custom Registration page – prevent redirect to wp-login.php?action=register
  31. How to auto login after registration? [duplicate]
  32. Changing “Lost Password Email Link” to custom password reset page
  33. How to redirect user to a specific page based on username?
  34. How to redirect to home page after registration?
  35. Redirect if $_Server[‘REQUEST_URI’] is /wp-login.php?checkemail=registered
  36. Redirect after password update
  37. How to redirect user after login to a specific page?
  38. Redirect Logged In User if page is wp-login.php and $_Get[‘level’] = X
  39. Redirect when accessing /login when logged in
  40. How to redirect after login getting a variable from url (for example with the language)
  41. If User is NOT Logged in and Page ID is not 6 – Redirect to Login
  42. Redirect to Current Page after Login
  43. How to include error message on login
  44. Login redirect problem
  45. Front end user creation form! How do you keep the user on the same page in event of error?
  46. How to redirect on login to a specific page if a specific meta user is empty
  47. redirect Login problems
  48. Redirect user to previous page after signup from custom form
  49. How can I force the user to log in, even if they’re already authenticated?
  50. User is logged in after Stripe payment, then redirected, but is then logged out again
  51. Redirect users after register (first login) and force submit post
  52. Login Redirect – Multiple Scenarios
  53. WooCommerce – Redirect to a product after login
  54. Usage of the login_redirect filter
  55. Redirect user to original url after login?
  56. Prevent users from going to wordpress profile after login
  57. Custom form redirect after login
  58. Custom redirect user after login based on metadata
  59. Custom Login Form – Redirect user to login page if not logged in
  60. Redirection on Custom page
  61. Redirect user to specific link after login
  62. Load function with login_redirect
  63. Prevent “/login” to redirect to “/wp-login”
  64. All URLs Redirect to Main Page
  65. How to redirect user after login to the page called by his first name?
  66. redirect doesn’t work while using example code
  67. Redirect After Login Error
  68. Redirect certain pages if user logged in
  69. Force User Login
  70. wp_login_form redirect
  71. custom login form redirect problem
  72. Login redirect to previous page
  73. Trying to re-direct users to specific page based on an ACF variable
  74. Disable redirect to homepage after successful Login, Stay on Current Page
  75. Redirect to custom login page if not logged in and redirect to home if logged in user try to login, how?
  76. wp_login_form() redirect same page
  77. How force WordPress redirect to current custom page after login
  78. Hide a Post everywhere except on redirect
  79. Conditional Login Redirect
  80. Keep the old referrer after failed login
  81. Determine user destination on wp-login.php
  82. Redirect user after login to prior page through a wp_login hook
  83. How can force redirected to login for two or more pages to view or access
  84. How to redirect user to Referrer Page using wp_signon in Custom Login Page in WordPress
  85. Redirect after login when WordPress in subdirectory
  86. HOW do you Redirect buddypress login to EDIT tab not PROFILE tab on profile page? [closed]
  87. Login redirects to home page and doesn’t log in
  88. WordPress not loggin user and redirecting after custom registration
  89. redirect to another page if user has registered successfully
  90. How to redirect new registrars to a custom registration page instead of WP default registration page?
  91. redirect_to ignoring the SSL
  92. Redirect user on login using extra field value on login form
  93. Woocommerce login to specific page or referrer
  94. wp-login.php redirect problem
  95. login redirect problem – db charset issue?
  96. How to modify the WordPress comes with redirect
  97. Conditional redirect on login using referring URL
  98. Redirect problem: How to redirect to the original URL after login
  99. Custom Login Plugin Redirects to wp-login.php After Site Migration
  100. Login Form Redirection
Categories redirect Tags login, redirect, user-registration
WordPress – Increase number of posts in “Add Link” dialogue
PHP block changed to comment by WordPress?

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress