WordPress 404 redirect code
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();
?>
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();
?>
If you like what you see, please support via PayPal or click on the advertisements, thus acknowledging my work. I turned off the Adblocker detector to improve the user experience. You can also trust me with WordPress website or WordPress plugin development. Check out my completed works and get in touch.
Dear User,
We would like to continue our work and keep providing you with free content and services. However, we need your help to do that.
If you are satisfied with our website and the information we offer, please consider making a donation. Most of our work is done on a voluntary basis, and donations help cover operating costs and support the development of new content.
Every contribution, no matter how big or small, contributes to the maintenance and improvement of our website. Click the PayPal button below to donate easily and securely. Thank you for your generous support!
This website uses cookies to secure our site and enhance user experience by providing functionalities you request. With your consent, we also will use cookies to analyze performance and traffic on our website, and to share information collected by cookies about your use of the site with our social media, advertising, and analytics partners. collected by cookies about your use of the site with our social media, advertising, and analytics partners.