开发者

In which file 404 page redirection happening in Wordpress?

i want to know from where the 404 page redi开发者_如何转开发rection happened?.Because i need to redirect to custom.php instead 404 page.

is this possible?..if it is where do i change the code?.

Thanks Ravi


The easiest way would be to substitute the error page (which in wordpress is called 404.php) by your own. Just go to the folder where your theme is stored, and you will find there the 404.php (if it doesn't exist, no problem). Rename your custom.php to 404.php and put it in your theme's folder, and you should have it.

You can read more information in this article at wodpress.org about creating an Error 404 Page

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜