Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jesin A

    (@jesin)

    Hi,

    What theme are you using? You can create copies of the 404.php file and edit it as mentioned in the article.

    Thread Starter oanhtran1804

    (@oanhtran1804)

    I’m using rehub. But which position code 403, 401 should i change to be 404? I guess code will be more simple when all become 404. Can you write this article? Thanks

    Plugin Author Jesin A

    (@jesin)

    Did you try using this plugin? You don’t have to edit code if you use it.

    Thread Starter oanhtran1804

    (@oanhtran1804)

    Hi the plugin and the article both given:
    Error 401 ==> Linked to 404 page
    Error 400 ==> 400 page

    But what is want:
    Error 401 and 400 ==> Redirect to 404. WHY? When hacker attach they will not know what exactly wrong with them. So they need more time to finger out it, better than give they know exact error type during hacking.

    So can you please copy and create new article for this situation? Thanks

    Plugin Author Jesin A

    (@jesin)

    Try this in you .htaccess file:

    
    ErrorDocument 403 /index.php?error=404
    
    • This reply was modified 7 years, 1 month ago by Jesin A.
    Thread Starter oanhtran1804

    (@oanhtran1804)

    Thank you. I only tried this code in .htaccess (Not included code in article). It doesn’t work
    ErrorDocument 403 /index.php?error=404

    Do you need anything eles special?

    • This reply was modified 7 years, 1 month ago by oanhtran1804.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘401, 403 redirect to 404 defaul theme’ is closed to new replies.