Title: Redirection from login.php to index.php
Last modified: August 19, 2016

---

# Redirection from login.php to index.php

 *  [scarred](https://wordpress.org/support/users/scarred/)
 * (@scarred)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/redirection-from-loginphp-to-indexphp/)
 * I have implemented a sidebar login using just php code. When I login with the
   username and password fields empty, it redirects me to
    ../wp-login.php and when
   I logout it redirects me to ../wp-login.php?loggedout=true How do I redirect 
   to ../index.php when making one of these actions?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/redirection-from-loginphp-to-indexphp/#post-971835)
 * See if there is something here to help you:
    [http://www.kpdesign.net/wordpress/allowing-limiting-user-access-in-wordpress/](http://www.kpdesign.net/wordpress/allowing-limiting-user-access-in-wordpress/)

Viewing 1 replies (of 1 total)

The topic ‘Redirection from login.php to index.php’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [17 years, 3 months ago](https://wordpress.org/support/topic/redirection-from-loginphp-to-indexphp/#post-971835)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
