Title: Redirect to /wp-admin
Last modified: August 21, 2016

---

# Redirect to /wp-admin

 *  Resolved Anonymous User 9588130
 * (@anonymized-9588130)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/redirect-to-wp-admin/)
 * Hi guys,
 * This may seem like a strange request, but I would like my site to always redirect
   to /wp-admin. I’m using a tool call MainWP which is used to manage multiple WordPress
   sites, so I will never need to access the front end of the site.
 * So, what I would like is to go to [http://mysite.com](http://mysite.com) and 
   it display a login prompt for the backend. Then, when I login, it needs to go
   to [http://mysite.com/wp-admin](http://mysite.com/wp-admin), or even better, 
   [http://mysite.com/wp-admin/admin.php?page=mainwp_tab](http://mysite.com/wp-admin/admin.php?page=mainwp_tab).
 * Is this possible? I tried using htaccess for this, but I just got a /wp-admin/
   wp-admin/wp-admin/wp-admin loop.
 * Thanks for any assistance guys!
 * Kev

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter Anonymous User 9588130
 * (@anonymized-9588130)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/redirect-to-wp-admin/#post-4209182)
 * I actually managed to fix this myself (should have researched more before posting
   sorry).
 * I installed two plugins:
 * [http://wordpress.org/plugins/force-user-login/](http://wordpress.org/plugins/force-user-login/)
   
   [http://wordpress.org/plugins/peters-login-redirect/](http://wordpress.org/plugins/peters-login-redirect/)
 * The first ensures that if you’re not logged in then you are re-directed to the
   login page. Using the “all other users” field on the “Peters Login Redirect” 
   plugin allowed me to specify the URL that I wanted to be redirected to after 
   a login.
 * All seems to working great.
 *  [mainwp](https://wordpress.org/support/users/mainwp/)
 * (@mainwp)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/redirect-to-wp-admin/#post-4209216)
 * If you are always redirecting to the wp-admin and you have no use **at all** 
   for the front-end of WP you could probably do it using wp_redirect.
 * Add the wp_redirect to a child theme of your current theme, copying the index.
   php to the child theme then adding
 * `wp_redirect( home_url('/wp-login.php') ); exit;`
 * Add that code right above the themes get_header hook on the index.php page.
 * Then delete all your posts and pages.
 * Do note that I have not tested it just a theory that should work and not require
   multiple plugins.
 *  Thread Starter Anonymous User 9588130
 * (@anonymized-9588130)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/redirect-to-wp-admin/#post-4209220)
 * Ah cool, I’ll look into that, thanks. Less plugins the better.
 * You guys are everywhere!!! 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Redirect to /wp-admin’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: Anonymous User 9588130
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/redirect-to-wp-admin/#post-4209220)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
