• Resolved masflojo

    (@masflojo)


    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)
  • 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

    (@masflojo)

    Thanks !

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Automatic 301?’ is closed to new replies.