Title: WordPress in subdirectory Pgae error 404
Last modified: May 13, 2020

---

# WordPress in subdirectory Pgae error 404

 *  [pritamkr21](https://wordpress.org/support/users/pritamkr21/)
 * (@pritamkr21)
 * [6 years ago](https://wordpress.org/support/topic/wordpress-in-subdirectory-pgae-error-404/)
 * [https://wordpress.org/support/topic/website-in-subfolder-not-working-after-wordpress-update/](https://wordpress.org/support/topic/website-in-subfolder-not-working-after-wordpress-update/)
 * I need to help related to this post, after adding require( dirname( _FILE_ ) .‘/
   wordpress/wp-blog-header.php’ ) this code in index.php file of root domain my
   root domain is also redirected to my subdirectory website.
    I need help regarding
   this problem.

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

 *  [JNashHawkins](https://wordpress.org/support/users/jnashhawkins/)
 * (@jnashhawkins)
 * [6 years ago](https://wordpress.org/support/topic/wordpress-in-subdirectory-pgae-error-404/#post-12827540)
 * That post you mentioned is a very old post and is closed to new replies so you
   can’t help that person but the good news is the OP there figured it out and left
   information to possibly help other users with the same problem.
 *  Thread Starter [pritamkr21](https://wordpress.org/support/users/pritamkr21/)
 * (@pritamkr21)
 * [6 years ago](https://wordpress.org/support/topic/wordpress-in-subdirectory-pgae-error-404/#post-12827676)
 * I need solution, I am added that code to index.php file but after that my root
   website is redirecting to subdirectory website.

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

The topic ‘WordPress in subdirectory Pgae error 404’ is closed to new replies.

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)
 * [subdirectory](https://wordpress.org/support/topic-tag/subdirectory/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [pritamkr21](https://wordpress.org/support/users/pritamkr21/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/wordpress-in-subdirectory-pgae-error-404/#post-12827676)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
