- Posts: 126
- Thank you received: 0
How to remake all blank pages on 404 pages?
11 years 10 months ago - 11 years 10 months ago #181717
by neviqimka
How to remake all blank pages on 404 pages? was created by neviqimka
-- HikaShop version -- : 2.3.4
Hello! How to remake all blank pages with message "Product not found" on 404 pages? Because Joomla redirect component does not work with standard redirect, he is work only for 404 pages.
P.S. I can add the rule in .htaccess for redirect, but this blank pages are indexed by search engines and I can not find all this pages
Hello! How to remake all blank pages with message "Product not found" on 404 pages? Because Joomla redirect component does not work with standard redirect, he is work only for 404 pages.
P.S. I can add the rule in .htaccess for redirect, but this blank pages are indexed by search engines and I can not find all this pages
Last edit: 11 years 10 months ago by neviqimka.
Please Log in or Create an account to join the conversation.
11 years 10 months ago #181780
by nicolas
Replied by nicolas on topic How to remake all blank pages on 404 pages?
Hi,
Change the line:
$app->enqueueMessage(JText::_('PRODUCT_NOT_FOUND'));
to:
return JError::raiseError(404, 'product not found');
in the "show" file of the "product" view of your front-end template, via "Hikashop->Display->Views"
Change the line:
$app->enqueueMessage(JText::_('PRODUCT_NOT_FOUND'));
to:
return JError::raiseError(404, 'product not found');
in the "show" file of the "product" view of your front-end template, via "Hikashop->Display->Views"
Please Log in or Create an account to join the conversation.
Time to create page: 0.137 seconds