Hot answers tagged

2

In most cases, case-sensitivity depends on the database collation. By default, Craft uses case insensitive collations (utf8_general_ci or utf8mb4_0900_ai_ci, depending on the charset). You can change that in your database configuration. Keep in mind that if you change the collation for an existing project, it won't update existing tables automatically. You ...


2

Completely possible without any extra routing! First you would need to make sure the relation fields are required to prevent any errors. For the Country section, you would simply set up your section with the URI format { slug } For Region you would set up the URI Format to grab the related Country's slug for the first segment, like this: { ...


1

If you're worried about search engines indexing some page where someone is linking to with a different case, as mentioned by Moritz, that's what you use the canonical tag for: <link rel="canonical" href="{{ entry.url}}"> You mention the second URL in your example 404s but flipping the argument around for a moment, I'm not sure I'd ...


1

CRAFT CMS 3 I had a similar issue, and the way I solved it in Craft CMS 3 was through routes, similar to the answer from Brandon Kelly. I have the entries location, category and subcategory. These last two without URI (they are just entries without URL). But I want to display a template when visiting the routes: // Route for menu, categories and ...


Only top voted, non community-wiki answers of a minimum length are eligible