Case-insensitive URLs


(George Mutale) #1

Any ideas how to make Matrix case-insensitive to URLs? I am currently also looking into how to do this in Apache.


(Arekczer) #2

For me it's work correct:
http://www.wup-katowice.pl/kontak
and page is loaded OK

http://www.wup-katowice.pl/kontak
I have 404 error.

Regards
Arek

(Avi Miller) #3

That is an example of case-sensitive, not insensitive (where kontakt and KONTAKT would point to the same page).

Matrix itself is not configured to support case-insensitivity, so I'm not sure how successful you'll be without changing code.

(Arekczer) #4

[quote]That is an example of case-sensitive, not insensitive (where kontakt and KONTAKT would point to the same page).


Matrix itself is not configured to support case-insensitivity, so I’m not sure how successful you’ll be without changing code.[/quote]

Hi Avi,



I didn’t change any part of MM code.

I test on another sever with another web app - the same result I have. index.php work fine, INDEX.php give me 404

I think it is depend of *NIX file system, it is case-sensitive.

Also I check www.squiz.pl site

http://www.squiz.pl/news/wojewodzki_URZAD_pracy_w_katowicach_wybiera_mysource_matrix.. - blank page

http://www.squiz.pl/news/wojewodzki_URZAD_pracy_w_katowicach_wybiera_mysource_matrix.. - work fine



Regards

Arek


(Justin Cormack) #5

[quote]Hi Avi,


I didn’t change any part of MM code.

I test on another sever with another web app - the same result I have. index.php work fine, INDEX.php give me 404

I think it is depend of *NIX file system, it is case-sensitive.

Also I check www.squiz.pl site

http://www.squiz.pl/news/wojewodzki_URZAD_pracy_w_katowicach_wybiera_mysource_matrix… - blank page

http://www.squiz.pl/news/wojewodzki_URZAD_pracy_w_katowicach_wybiera_mysource_matrix… - work fine



Regards

Arek[/quote]



Arek, George wants it to work the other way round, so these are the same page.



This is going to be very difficult to do in Matrix, and it is unclear that you should do it as it may cause problems later (eg with new web paths).



You cant do it in apache either, out of the box.



If these are old URLs from another system, you might be better off finding all the ones that are linked on search engines and feeding these into mod rewrite.


(Arekczer) #6

[quote]Arek, George wants it to work the other way round, so these are the same page.


This is going to be very difficult to do in Matrix, and it is unclear that you should do it as it may cause problems later (eg with new web paths).



You cant do it in apache either, out of the box.



If these are old URLs from another system, you might be better off finding all the ones that are linked on search engines and feeding these into mod rewrite.[/quote]

OK - I understand



But it is possible to have ie.

http://mm.wup-katowice.pl/tests/KONTAKT

http://mm.wup-katowice.pl/tests/KONTAKT



I did this by changing “Web Paths”

It’s only test.



Regards

Arek


(Avi Miller) #7

[quote]I did this by changing "Web Paths"
It's only test.[/quote]



Yes, Matrix is case-sensitive – those could be different assets, though that is trickier to achieve. Matrix also maintains case for file-based assets.


(George Mutale) #8

Thanks for the feedback. I will go with mod_rewrite or ask the client to add an additional Web Path in that case.


(Avi Miller) #9

You could also use the Remap Manager for this, if you have several URLs to map to a single asset.

(George Mutale) #10

The issue of case-sensitivity is related in some way to MySource Classic. In MySource Classic it seems if a URL contains an uppercase letter, the URL is converted to lowercase and a request is made for the modified URL.

From the feedback and after a bit more thought, converting URLs at the Apache level would not work, since files on the file system would not be retrieved correctly (may be mod_speling might work here).

The 'easier' and may be possible way, is for Matrix to convert all URLs (excluding files on the filesystem) to lower case when looking up the URL. Does anyone see it as a worthy feature request?