Add to cart and category links are broken

  • Posts: 11
  • Thank you received: 0
4 years 7 months ago #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 "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 or Create an account to join the conversation.

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 7 months ago #322860

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

Please Log in or Create an account to join the conversation.

  • Posts: 11
  • Thank you received: 0
4 years 7 months ago #322883

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 or Create an account to join the conversation.

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 7 months ago #322885

Hi,

The main page is this one from Joomla's project itself:
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

The following user(s) said Thank You: combatbrick

Please Log in or Create an account to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum