Joomla 4.1 url generated is case sensitive Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Joomla 4.1 url generated is case sensitive
Hi,
I have upgraded the site to Joomla 4.1 from J3. it was very smooth, however the url generated became case sensitive, this created a huge problem, in j3, it was case-insensitive. I tried manipulate the file .htaccess it does not work. I talked to the host, they said it is a joomla issue. for example the link
https://www.fittotravel.net/london is working while https://www.fittotravel.net/London is not.
any help in this issue?
many thanks
I have upgraded the site to Joomla 4.1 from J3. it was very smooth, however the url generated became case sensitive, this created a huge problem, in j3, it was case-insensitive. I tried manipulate the file .htaccess it does not work. I talked to the host, they said it is a joomla issue. for example the link
https://www.fittotravel.net/london is working while https://www.fittotravel.net/London is not.
any help in this issue?
many thanks
- toivo
- Joomla! Master
- Posts: 14771
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Joomla 4.1 url generated is case sensitive
Welcome to the Joomla Forum!
Which operating system does the web server use in each case, Joomla 3 and Joomla 4?
Which operating system does the web server use in each case, Joomla 3 and Joomla 4?
Toivo Talikka, Global Moderator
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
the operating system is Linux OS use Fedora one SiteGround for both j3 and j4
- abernyte
- Joomla! Virtuoso
- Posts: 4101
- Joined: Fri May 15, 2009 2:01 pm
- Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड
Re: Joomla 4.1 url generated is case sensitive
Did your Joomla 3 site have the apache mod_speling enabled.
That does allow URL's with one error in uppercase capitalisation in text after the domain name to resolve. If it is not available to the J4 site it may explain the discrepancy.
The general rule is that all urls are care insensitive in Windows but in Linux it will only allow uppercase in the domain portion..which it ignores. No uppercase after the .org etc.
Code: Select all
<Directory /var/www/html>
CheckCaseOnly on
CheckSpelling on
</Directory>
The general rule is that all urls are care insensitive in Windows but in Linux it will only allow uppercase in the domain portion..which it ignores. No uppercase after the .org etc.
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine
- Webdongle
- Joomla! Master
- Posts: 41696
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 4.1 url generated is case sensitive
All urls are converted to lowercase
Generally Windows is not case sensitive but Linux is. So:
1. site.com/London will be converted to site.com/london
2. when the request site.com/london reaches a windows server it will be directed the folder called London or london.
(in windows you can have a folder called London or london not both. you can also have spaces in a folder name)
but
3. when the request site.com/london reaches a linux server it will look for a folder called london
(in linux you can have a folder called London and a folder called london. you can not have spaces in a folder name).
That's why Joomla url's (in the Alias field of the menu item) does not accept lowercase or spaces.
Joomla would not create a url fittotravel.net/London.
Did you create the site on windows then transfer to the linux server?
How was the folder /London created?
Generally Windows is not case sensitive but Linux is. So:
1. site.com/London will be converted to site.com/london
2. when the request site.com/london reaches a windows server it will be directed the folder called London or london.
(in windows you can have a folder called London or london not both. you can also have spaces in a folder name)
but
3. when the request site.com/london reaches a linux server it will look for a folder called london
(in linux you can have a folder called London and a folder called london. you can not have spaces in a folder name).
That's why Joomla url's (in the Alias field of the menu item) does not accept lowercase or spaces.
Joomla would not create a url fittotravel.net/London.
Did you create the site on windows then transfer to the linux server?
How was the folder /London created?
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
Dear Webdongle thanks for the comments, the website is originally on linux, however the url /London is created by the authors of the articles, because j3 accepted both urls /London and /london, both leads to the menu item 'london'. when upgrade to j4 the /London url give "404 Page not found"
I hope there is some solution for that.
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
Dear abernyte Thank you for help, however as a beginner, I just added mod_speling to .htaccess, for apache, maybe I need to talk to the host to enable. is ther other things to do in the joomla side?
- Webdongle
- Joomla! Master
- Posts: 41696
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 4.1 url generated is case sensitive
Joomla (whatever version) does not accept url's it creates them. The url's Joomla creates DO NOT include upper case characters.
A 3rd party Template or extension must have created a folder called /London and a url to it that it fittotravel.net/london
Then (for some reason) the 3rd party Template or extension is now creating the url fittotravel.net/London
Check the folders on your server called /London and edit to /london
What link in your site calls fittotravel.net/London ?
Also please https://forumpostassistant.github.io/docs/ might help locate the extension.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- brian
- Joomla! Master
- Posts: 12538
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Joomla 4.1 url generated is case sensitive
IT IS A BUG
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
- Webdongle
- Joomla! Master
- Posts: 41696
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 4.1 url generated is case sensitive
Thanks @brian
Link to the issue tracker please
Link to the issue tracker please
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- brian
- Joomla! Master
- Posts: 12538
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Joomla 4.1 url generated is case sensitive
not on the tracker. no one has reported it before - that I am aware of
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
Yes, I agree with you, joomla always generate lower case URL. please excuse my ignorance, I haven’t explain the issue correctly,Joomla (whatever version) does not accept url's it creates them. The url's Joomla creates DO NOT include upper case characters.
I mean the authors of articles added links to folder “ london ‘’ using upper case, “index.php/London, in j3 this link leads to folder lonodn,, while in j4 it is not, so the error created artificially, the ideal way is to change all the links in articles manually, however, there are more than 1k articles, I wonder if there is another solution, to make j4 behave like the j3 in this matters.
Last edited by toivo on Sun Jun 26, 2022 8:25 am, edited 1 time in total.
Reason: mod note: fixed quote tag
Reason: mod note: fixed quote tag
- brian
- Joomla! Master
- Posts: 12538
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Joomla 4.1 url generated is case sensitive
I am writing a pull request to permanently address this but in the meantime you can probably create/find an htaccess
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
- Webdongle
- Joomla! Master
- Posts: 41696
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 4.1 url generated is case sensitive
But still type HTTP://FORUM.JOOMLA.ORG and when clicked the url in the browser shows forum.joomla.org
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
Yes the domain name in upper case still working "HTTPS://WWW.FITTOTRAVEL.NET" pointing to the home page, however when pointing to a folder or a menu item, the upper case does not work. this link 'https://www.fittotravel.net/index.php/London' with London initial capital does not work.But still type HTTP://FORUM.JOOMLA.ORG and when clicked the url in the browser shows forum.joomla.org
Interestingly, I have another j3 website on the same host with url still case insensitive.
I mean, both "www.ahmadlatif.com/index.php/articles" and "www.ahmadlatif.com/index.php/Articles" working and pointing to the same menu item.
- Webdongle
- Joomla! Master
- Posts: 41696
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 4.1 url generated is case sensitive
Yep, I see now
@brian
Manually edited file on test site as per your change https://github.com/joomla/joomla-cms/co ... 647f5c1577 thanks.
@samlatif
Try it
@brian
Manually edited file on test site as per your change https://github.com/joomla/joomla-cms/co ... 647f5c1577 thanks.
@samlatif
Try it
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- brian
- Joomla! Master
- Posts: 12538
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Joomla 4.1 url generated is case sensitive
domain names are not case sensitive
urls are case sensitive
urls are case sensitive
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
Great.. working, Many ThanksWebdongle wrote: ↑Sun Jun 26, 2022 9:08 amYep, I see now
@brian
Manually edited file on test site as per your change https://github.com/joomla/joomla-cms/co ... 647f5c1577 thanks.
@samlatif
Try it

- brian
- Joomla! Master
- Posts: 12538
- Joined: Fri Aug 12, 2005 7:19 am
- Location: Leeds, UK
- Contact:
Re: Joomla 4.1 url generated is case sensitive
please go to https://issues.joomla.org/tracker/joomla-cms/38145 and report your tests otherwise this will never be merged and you will lose your manual edit on the next update
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/
- Webdongle
- Joomla! Master
- Posts: 41696
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Joomla 4.1 url generated is case sensitive
@brian
Sorry didn't see the Test PR when I looked before.
Done now
Sorry didn't see the Test PR when I looked before.
Done now
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
- abernyte
- Joomla! Virtuoso
- Posts: 4101
- Joined: Fri May 15, 2009 2:01 pm
- Location: Écosse - Scozia - Escocia - Škotija -स्कॉटलैंड
Re: Joomla 4.1 url generated is case sensitive
Second test done
"Those who expect to reap the blessings of freedom must, like men, undergo the fatigue of supporting it." Thomas Paine
-
- Joomla! Apprentice
- Posts: 9
- Joined: Wed Oct 31, 2012 3:14 pm
Re: Joomla 4.1 url generated is case sensitive
Sure I will report it. many thanks for the great help.brian wrote: ↑Sun Jun 26, 2022 12:12 pmplease go to https://issues.joomla.org/tracker/joomla-cms/38145 and report your tests otherwise this will never be merged and you will lose your manual edit on the next update