Title: Automatic 301?
Last modified: August 30, 2016

---

# Automatic 301?

 *  Resolved [masflojo](https://wordpress.org/support/users/masflojo/)
 * (@masflojo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/automatic-301/)
 * I am trying to “hijack” the 404 page for some custom functions based on the URI
   request but WordPress is automatically redirecting to posts or pages that have
   similar keywords despite the fact that the URI it gets redirected to is not even
   close to what is requested. How do I prevent WordPress from automatically doing
   these 301s?

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

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/automatic-301/#post-6233300)
 * > I am trying to “hijack” the 404 page for some custom functions
 * I have these in .htaccess, and I think something like that to get to your custom
   file might do the trick:
 *     ```
       ErrorDocument 400 /400.php
       ErrorDocument 401 /401.php
       ErrorDocument 403 /403.php
       ErrorDocument 404 /404.php
       ```
   
 *  Thread Starter [masflojo](https://wordpress.org/support/users/masflojo/)
 * (@masflojo)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/automatic-301/#post-6233327)
 * Thanks !

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

The topic ‘Automatic 301?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [masflojo](https://wordpress.org/support/users/masflojo/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/automatic-301/#post-6233327)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
