1

When I enter not found URL then, I am redirecting to 404 page.

But I need to Url also should be changed to 404notfound page.

So in case if 404, My url should be www.mysite.com/404notfound.

Please suggest me.

I tried to create new 404 cms page and assign to noroute. but still URL does not change.

I also tried to change CMS 404 page route, but getting Magento error with error code.

4

2 回答 2

0

我已经通过在函数末尾添加单行来解决这个问题, cms/indexController/noRouteAction

$this->_redirect($pageId);

于 2013-07-24T11:42:29.617 回答
0

这应该.htaccess使用以下行在级别处理:

ErrorDocument 404 /404notfound

于 2013-07-17T14:38:15.737 回答