barry-dev Posted June 13, 2016 Share Posted June 13, 2016 I'm on cubecart 5, my issues is if I set an seo friendly url for a document then navigate to it I get a 404 error. If I append the url with .html then the page loads up, surely this must be a bug as htaccess should be able to serve the page without a file extension? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 13, 2016 Share Posted June 13, 2016 Welcome barry-dev! Glad to see you made it to the forums. It is true that if there is an appropriately formatted URL ReWrite directive in the .htaccess file, then whatever URL that matches that pattern is requested, the ReWriter will be able to spot it, rewrite it, and send the rewritten URL to CubeCart. Currently, CubeCart5/6 uses the format: ^(.*)\.html?$ that where (whatever) in front of the .html suffix (possibly .htm), is used as the "key", that is "seo-friendly" part of the URL, to finding the product, category, document, or a few of the other pages. What can be tried is a second URL ReWrite directive be added just after the stock directive, such that the ReWriter will be able to spot the secondary pattern. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.