Jump to content

document urls


barry-dev

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...