Search
 
SCRIPT & CODE EXAMPLE
 

PHP

wordpress 404.php redirect to home

<?php
// NOTE: create this file name on your child theme: 404.php and add the code:
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
Comment

PREVIOUS NEXT
Code Example
Php :: laravel wherin softdelete 
Php :: php rsort retain keys 
Php :: php timestamp to seconds 
Php :: get next month first day php 
Php :: how to fetch all column values php 
Php :: encrypt & decrypt laravel 
Php :: php encrypt decrypt url parameters 
Php :: php realpath 
Php :: make full laravel model ( with migration, controller and resource ) 
Php :: phpunit assert not false 
Php :: a facade root has not been set laravel 7 
Php :: limiting requests to controllers in laravel 
Php :: date time in php 
Php :: Date Format Conversion in controller or Blade file 
Php :: php new object 
Php :: how to clear session in laravel 
Php :: can we create linked list in php 
Php :: laravel 9 Route::controller 
Php :: laravel pagination with query string, laravel pagination with string 
Php :: how to get a sum of a column in lravel 
Php :: php opendir 
Php :: abort in laravel 
Php :: check if file empty php 
Php :: docker php 7.2 add ext-mongodb 
Php :: SMTP - ERROR: Failed to connect to server: Connection refused (111)SMTP Connect() failed. 
Php :: show image laravel 
Php :: email or phone required in laravel 
Php :: php array to array collection 
Php :: php redirect with query string 
Php :: php description limit 
ADD CONTENT
Topic
Content
Source link
Name
1+8 =