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

#   Add to cart and category links are broken

##

- **[combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")**
- [![combatbrick's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9935-combatbrick "View combatbrick's Profile") Topic Author
- [ Offline](/forum/user/9935-combatbrick)

Less More

- Posts: 11
- Thank you received: 0
-
-

6 years 2 months ago [\#322847](#322847) by [combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")  *[Add to cart and category links are broken](/forum/26-product-category-display/900564-add-to-cart-and-category-links-are-broken#322847 "-- url of the page with the problem -- :   www.combatbrick.com  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.20 -- PHP version -- : 5.4.45 -- Error-message(debug-mod must be tuned on) -- : Failed to load resource: the server responded with a status of 404 ()  I noticed that all the category links are broken (404). Also &quot;Add to cart&quot; is broken as well: Failed to load resource: the server responded with a status of 404 ().  I noticed that some of the product listing are not working either unless I add a canonical url to a product.")* was created by *[combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")*

-- url of the page with the problem -- : [ www.combatbrick.com](http://www.combatbrick.com)
-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.20
-- PHP version -- : 5.4.45
-- Error-message(debug-mod must be tuned on) -- : Failed to load resource: the server responded with a status of 404 ()

I noticed that all the category links are broken (404).
Also "Add to cart" is broken as well:
Failed to load resource: the server responded with a status of 404 ().

I noticed that some of the product listing are not working either unless I add a canonical url to a product.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDA1NjQtYWRkLXRvLWNhcnQtYW5kLWNhdGVnb3J5LWxpbmtzLWFyZS1icm9rZW4/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

6 years 2 months ago [\#322860](#322860) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart and category links are broken](/forum/26-product-category-display/900564-add-to-cart-and-category-links-are-broken#322860 "-- url of the page with the problem -- :   www.combatbrick.com  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.20 -- PHP version -- : 5.4.45 -- Error-message(debug-mod must be tuned on) -- : Failed to load resource: the server responded with a status of 404 ()  I noticed that all the category links are broken (404). Also &quot;Add to cart&quot; is broken as well: Failed to load resource: the server responded with a status of 404 ().  I noticed that some of the product listing are not working either unless I add a canonical url to a product.")*

Hi,

Your problem is not limited to HikaShop.
If you check the links of your Joomla login module, on the sidebar of your homepage, you can see the same problem.
For example, the registration form page links to [ combatbrick.com/component/users/?view=registration&amp;Itemid=102](https://combatbrick.com/component/users/?view=registration&Itemid=102)
which displays that same 404 error because the index.php is missing from it.
But if I add it, it works:
[ combatbrick.com/index.php/component/user...istration&amp;Itemid=102](https://combatbrick.com/index.php/component/users/?view=registration&Itemid=102)
So this tells me that you must have activated the "Use URL Rewriting" setting of the joomla configuration but didn't rename the .htaccess file and thus all the links end up without the index.php and fail as there is no .htaccess file to catch them.
And I suppose that you circumvented the problem for the categories and products for which the links work, by manually adding the index.php par to the canonical URL.

The following user(s) said Thank You: [combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")

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

- **[combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")**
- [![combatbrick's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/9935-combatbrick "View combatbrick's Profile") Topic Author
- [ Offline](/forum/user/9935-combatbrick)

Less More

- Posts: 11
- Thank you received: 0
-
-

6 years 2 months ago [\#322883](#322883) by [combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")  Replied by *[combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")* on topic *[Add to cart and category links are broken](/forum/26-product-category-display/900564-add-to-cart-and-category-links-are-broken#322883 "-- url of the page with the problem -- :   www.combatbrick.com  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.20 -- PHP version -- : 5.4.45 -- Error-message(debug-mod must be tuned on) -- : Failed to load resource: the server responded with a status of 404 ()  I noticed that all the category links are broken (404). Also &quot;Add to cart&quot; is broken as well: Failed to load resource: the server responded with a status of 404 ().  I noticed that some of the product listing are not working either unless I add a canonical url to a product.")*

Thank you! Template support guys were messing with the site and might have applied some changes. Is there an good article to read on interplay between "url rewriting" and .htaccess files?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDA1NjQtYWRkLXRvLWNhcnQtYW5kLWNhdGVnb3J5LWxpbmtzLWFyZS1icm9rZW4/dG1wbD1tYXJrZG93bg==) 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: 86316
- Thank you received: 14276
-
-

6 years 2 months ago [\#322885](#322885) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add to cart and category links are broken](/forum/26-product-category-display/900564-add-to-cart-and-category-links-are-broken#322885 "-- url of the page with the problem -- :   www.combatbrick.com  -- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.20 -- PHP version -- : 5.4.45 -- Error-message(debug-mod must be tuned on) -- : Failed to load resource: the server responded with a status of 404 ()  I noticed that all the category links are broken (404). Also &quot;Add to cart&quot; is broken as well: Failed to load resource: the server responded with a status of 404 ().  I noticed that some of the product listing are not working either unless I add a canonical url to a product.")*

Hi,

The main page is this one from Joomla's project itself:
[ docs.joomla.org/Enabling\_Search\_Engine\_Friendly\_(SEF)\_URLs](https://docs.joomla.org/Enabling_Search_Engine_Friendly_(SEF)_URLs)
For something more reader-friendly, with some screenshots, you have this:
[ www.joomlart.com/tutorials/joomla-tutori...-index-php-from-urls](https://www.joomlart.com/tutorials/joomla-tutorials/joomla-4-tutorials-how-to-remove-index-php-from-urls)

The following user(s) said Thank You: [combatbrick](/forum/user/9935-combatbrick "View combatbrick's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI2LXByb2R1Y3QtY2F0ZWdvcnktZGlzcGxheS85MDA1NjQtYWRkLXRvLWNhcnQtYW5kLWNhdGVnb3J5LWxpbmtzLWFyZS1icm9rZW4/dG1wbD1tYXJrZG93bg==) 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.145 seconds

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

[](#top)
