[Skip to main content](#vessel-content)

#   How to remake all blank pages on 404 pages?

##

- **[neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")**
- [![neviqimka's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar_2013-06-25.png)](/forum/user/22899-neviqimka "View neviqimka's Profile") Topic Author
- [ Offline](/forum/user/22899-neviqimka)

Less More

- Posts: 126
- Thank you received: 0
-
-

11 years 11 months ago -  11 years 11 months ago [\#181717](#181717) by [neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")  *[How to remake all blank pages on 404 pages?](/forum/26-product-category-display/873338-how-to-remake-all-blank-pages-on-404-pages#181717 "-- HikaShop version -- : 2.3.4  Hello! How to remake all blank pages with message &quot;Product not found&quot; 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")* was created by *[neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile")*

-- 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

Last edit: 11 years 11 months ago by [neviqimka](/forum/user/22899-neviqimka "View neviqimka's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMzMzgtaG93LXRvLXJlbWFrZS1hbGwtYmxhbmstcGFnZXMtb24tNDA0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86358
- Thank you received: 14293
-
-

11 years 11 months ago [\#181780](#181780) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[How to remake all blank pages on 404 pages?](/forum/26-product-category-display/873338-how-to-remake-all-blank-pages-on-404-pages#181780 "-- HikaShop version -- : 2.3.4  Hello! How to remake all blank pages with message &quot;Product not found&quot; 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")*

Hi,

Change the line:
$app-&gt;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-&gt;Display-&gt;Views"

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS84NzMzMzgtaG93LXRvLXJlbWFrZS1hbGwtYmxhbmstcGFnZXMtb24tNDA0LXBhZ2VzP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.056 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
