Title: Hide or redirect wp-login.php
Last modified: August 20, 2016

---

# Hide or redirect wp-login.php

 *  [suntower](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/hide-or-redirect-wp-loginphp/)
 * Hi,
 * Is there a way to prevent visitors, whether logged in or not, from reaching mysite.
   com/wp-login.php ?
 * I have a separate login form that is all we need. I know I can re-style the form
   generated by wp-login but I’d rather not have to deal with it at all. I’ve tried
   various filters and hooks and I can’t seem to get it to redirect. I also tried
   using a .htaccess redirect and I found that this works, but then it prevents 
   my custom login/logout form from working.
 * Ideas?
 * TIA,
 * —JC

The topic ‘Hide or redirect wp-login.php’ is closed to new replies.

## Tags

 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [suntower](https://wordpress.org/support/users/suntower/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/hide-or-redirect-wp-loginphp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
