In Joomla 3 it was possible to use an URL of this form example.com/Essays/somethin-else because the router would match 'Essays' to the alias of an existing menu item (eg. 'essays, content, single article) even though aliases are always lower-case.

However in Joomla 4 it appears that the Siterouter parseSefRoute rule does not force a lowercase comparison, and so it doesn't match the segment /Essays/ to the menu alias 'essays' and a 404 error results

We can get round this by doing a redirect in the htaccess file to go to a url (eg. redirect 301 'example.com/Essays/foo' 'example.com/essays/foo') but that would likely result in changing our pagerank which we would prefer to avoid.

Even were we to write a component, it seems that J4 would not ever accept uppercase in the first segment after the domain name and so our component would never be activated.

I am asking if there is an alternative approach that will allow us to use Joomla 4 with the original URLs but without having to do a redirect.


  • You appear to have done your research well and determined that core process will only parse lowercase letters in Joomla 4 and you have provided a workable solution with the .htaccess statements. Is your question that you want an alternative solution to your .htaccess modification? StackExchange is particular in that your Question should be clear in what you are asking for so that people can properly answer. Any Thoughts? and Any suggestions on this? are ambiguous and not really clear about what type of assistance you are asking for.
    – Irata
    Commented Dec 12, 2023 at 0:34
  • Thanks for the clarification. Yes, I am asking if there is an alternative approach that will allow us to use Joomla 4 with the original URLs but without having to do a redirect. Commented Dec 12, 2023 at 2:52
  • I edited the original to include a more specific request for assistance Commented Dec 12, 2023 at 3:40
  • For com_content or any of the core features using the standard SEF router I would think there isn't anything you can do to change the default behaviour. By the same reasoning any content it is generating to search engine crawlers would also be adhering to lowercase lettering so your search results are probably already affected if they were going to be. Are you concerned about Bookmarks or External links that have been saved with an uppercase letter? What sort of volume of potential candidates are you dealing with here?
    – Irata
    Commented Dec 12, 2023 at 3:40
  • I don't think there is anything we can do other than redirect our incoming links to their lowercase equivalents in htaccess. There is an open GitHub issue on this (github.com/joomla/joomla-cms/issues/38257) and I imagine this will surface a solution at some point in Joomla 4 or 5. We have several thousand legacy articles that will be affected and we are not sure if their pagerank will take a hit by redirecting their upper case links. Commented Dec 14, 2023 at 6:38


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.