At first take my salam. When a visitor visit your wordpress blog and search some thing then if that article or content exixt then your wordpress site show him. but if that content not exist or link is broken then wordpress system show him 404 page like that:
Today i am discribing a way for redirecting your wordpress sites 404 page to home page. when a user click a broken link of your wordpress blog then wordpress show him your homepage after some times from your 404 page automatically.
For that atfirst copy this code:
after copy this code paste it into at last of your 404 page.
you also done. Now if your visitor click a broken link or any link which is no longer for now then at first your wordpress site show 404 page and after some times wordpress automatically show homepage him.
Thanks for visiting my blog.
Today i am discribing a way for redirecting your wordpress sites 404 page to home page. when a user click a broken link of your wordpress blog then wordpress show him your homepage after some times from your 404 page automatically.
For that atfirst copy this code:
ANY PROBLEM COPY CODE HERE<?php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url')); exit(); ?>
after copy this code paste it into at last of your 404 page.
you also done. Now if your visitor click a broken link or any link which is no longer for now then at first your wordpress site show 404 page and after some times wordpress automatically show homepage him.
Thanks for visiting my blog.
0 comments:
Post a Comment
Comments here