How to redirect if 404 error in wordpress then redirect 404.php url

Question

i need to redirect my wordpress blog url to 404.php (file)

If some type wrong URL like example.com/blog/fgsdgfdg then I need to be redirect URL to example.com/blog/404.php

Below code not working

ErrorDocument 404 /404.php
0
ranbir 4 months 0 Answers 18 views 0

Leave an answer