Title: error 404 for subfolder
Last modified: August 21, 2016

---

# error 404 for subfolder

 *  [qdungeng](https://wordpress.org/support/users/qdungeng/)
 * (@qdungeng)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-404-for-subfolder/)
 * Dear friend
    How to rewrite for subfolder to 404 error
 * my hosting with prime domain : domain.com
    addon domain : domain1.com working
   with subfolder1 on root. how to rewrite domain.com/subfolder1/ to 404 error for
   domain.com only.
 * Please help me.

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-404-for-subfolder/#post-4335069)
 * Have you considered [allowing WordPress to take over the root domain](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install)?
 *  Thread Starter [qdungeng](https://wordpress.org/support/users/qdungeng/)
 * (@qdungeng)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-404-for-subfolder/#post-4335124)
 * Not working, please help me
 *  Thread Starter [qdungeng](https://wordpress.org/support/users/qdungeng/)
 * (@qdungeng)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/error-404-for-subfolder/#post-4335125)
 * I did copy this code to .htaccess of root (domain.com).
    ErrorDocument 404 /subfolder1/
   index.php?error=404
 * it not working.
 * But add this code to .htaccess of subfolder1.
    domain.com/subfolder1/ 404 error
   working fine, but the domain for subfolder1 not working, 550 error display.
 * Please help me

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

The topic ‘error 404 for subfolder’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [qdungeng](https://wordpress.org/support/users/qdungeng/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/error-404-for-subfolder/#post-4335125)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
