open
10.07.2022.

WordPress 404 redirect code

Last update: 16.09.2022.

Create a php file called 404 and copy the code below, or download the finished file.

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
Copy to Clipboard


Related posts

Got a question? Is something not working? Write and I'll answer!

Leave a Reply

Your email address will not be published.

11 − 7 =