Newbie: Case independent URLs?
Hi, I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it? I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/ Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure). I am running Zope behind Apache on Win2k server. Thanks for the help. - Robert
I believe all URL's are case dependant. The only way I would attempt it is to do the URL rewrite in apache to the correct case before passing it to Zope via mod_proxy or however else you are doing it. Rgds Tim On Tue, 2002-09-24 at 17:01, Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I am running Zope behind Apache on Win2k server.
Thanks for the help.
- Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
You could also look at the mod_speling (sic), but I'm not sure it would work with Zope Tim Hoffman wrote:
I believe all URL's are case dependant.
The only way I would attempt it is to do the URL rewrite in apache to the correct case before passing it to Zope via mod_proxy or however else you are doing it.
Rgds
Tim
On Tue, 2002-09-24 at 17:01, Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I am running Zope behind Apache on Win2k server.
Thanks for the help.
- Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
|
I think I will give this a shot. It shouldn't be too hard to force everything lowercase before it is passed to Zope. Now to investigate rewrite rules in Apache. :-) (always something new to learn...) - Robert At 05:36 PM 9/24/2002 +0800, Tim Hoffman wrote:
I believe all URL's are case dependant.
The only way I would attempt it is to do the URL rewrite in apache to the correct case before passing it to Zope via mod_proxy or however else you are doing it.
Rgds
Tim
On Tue, 2002-09-24 at 17:01, Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I am running Zope behind Apache on Win2k server.
Thanks for the help.
- Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Hmm... 4 sets of proxypass rules ought to do it... :-) Here are the first two.. assuming the folder is really named "familyalbum" in Zope ProxyPass /FamilyAlbum http://zopehost:8080/VirtualHostBase/http/www.mysite.com/familyalbum/Virtual... ProxyPassReverse /FamilyAlbum http://zopehost:8080/VirtualHostBase/http/www.mysite.com/familyalbum/Virtual... ProxyPass /familyAlbum http://zopehost:8080/VirtualHostBase/http/www.mysite.com/familyalbum/Virtual... ProxyPassReverse /familyAlbum http://zopehost:8080/VirtualHostBase/http/www.mysite.com/familyalbum/Virtual... Adam At 06:58 AM 9/24/02, Robert Allyn wrote:
I think I will give this a shot. It shouldn't be too hard to force everything lowercase before it is passed to Zope. Now to investigate rewrite rules in Apache. :-) (always something new to learn...)
- Robert
At 05:36 PM 9/24/2002 +0800, Tim Hoffman wrote:
I believe all URL's are case dependant.
The only way I would attempt it is to do the URL rewrite in apache to the correct case before passing it to Zope via mod_proxy or however else you are doing it.
Rgds
Tim
On Tue, 2002-09-24 at 17:01, Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I am running Zope behind Apache on Win2k server.
Thanks for the help.
- Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
i'm not quite sure why you insist on case insensitive URLs. case sensitive URLs are the standard all over the internet. i on't think i have ever seen a site that had case-insensitiva URLs in my life. there is no "standard technique" for this because AFAIK no one does this. is there a reason you would want to invest the extra hassle and processing to somehow get case-insensitive URLs? jens On Tuesday, Sep 24, 2002, at 06:58 US/Eastern, Robert Allyn wrote:
I think I will give this a shot. It shouldn't be too hard to force everything lowercase before it is passed to Zope. Now to investigate rewrite rules in Apache. :-) (always something new to learn...)
- Robert
At 05:36 PM 9/24/2002 +0800, Tim Hoffman wrote:
I believe all URL's are case dependant.
The only way I would attempt it is to do the URL rewrite in apache to the correct case before passing it to Zope via mod_proxy or however else you are doing it.
Rgds
Tim
On Tue, 2002-09-24 at 17:01, Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I am running Zope behind Apache on Win2k server.
Thanks for the help.
- Robert
On Tuesday 24 Sep 2002 1:10 pm, Jens Vagelpohl wrote:
there is no "standard technique" for this because AFAIK no one does this.
Like it or not, windows users are conditioned to expect case insensitivity. Our static site is full of files that mix up .pdf, .PDF, and .Pdf, and we need to use Apaches mod_speling to account for the difference. Ive given up on convincing the content authors that there is anything wrong in this. I seem to remember IIS work this way by default?
IIS and Apache on Windows are case insensitive by default, 'cos Windows file lookups is case insensitive by default.
is no "standard technique" for this because AFAIK no one does this.
So that's what 25% of the internet (IIS according to netcraft) that doesn't do this? ;) -- Andy McKay www.agmweb.ca
I agree it is a hassle. But... My most important "customer" is 60 - 90 years old, often having just started to use a computer. For them typing, let alone email and the web are all new. They tend to exchange web page URL's via 'snail' mail, or over the phone. The chance of them using upper case when it is not needed is pretty high. I get a number of 404 errors in my log from users typing in the wrong case in a URL. Because it is all new to them, they figure they did it wrong and give up. I need to accommodate these people for the site to be useable. That is why I am willing to jump through some hoops to make this work. From a brief look around, it seems IIS and Apache on Windows are case insensitive, as the OS is too dumb to know the difference. - Robert At 08:10 AM 9/24/2002 -0400, Jens Vagelpohl wrote:
i'm not quite sure why you insist on case insensitive URLs. case sensitive URLs are the standard all over the internet. i on't think i have ever seen a site that had case-insensitiva URLs in my life. there is no "standard technique" for this because AFAIK no one does this.
is there a reason you would want to invest the extra hassle and processing to somehow get case-insensitive URLs?
jens
On Tuesday, Sep 24, 2002, at 06:58 US/Eastern, Robert Allyn wrote:
I think I will give this a shot. It shouldn't be too hard to force everything lowercase before it is passed to Zope. Now to investigate rewrite rules in Apache. :-) (always something new to learn...)
- Robert
At 05:36 PM 9/24/2002 +0800, Tim Hoffman wrote:
I believe all URL's are case dependant.
The only way I would attempt it is to do the URL rewrite in apache to the correct case before passing it to Zope via mod_proxy or however else you are doing it.
Rgds
Tim
On Tue, 2002-09-24 at 17:01, Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I am running Zope behind Apache on Win2k server.
Thanks for the help.
- Robert
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Robert Allyn wrote:
I agree it is a hassle. But...
My most important "customer" is 60 - 90 years old, often having just started to use a computer. For them typing, let alone email and the web are all new. They tend to exchange web page URL's via 'snail' mail, or over the phone. The chance of them using upper case when it is not needed is pretty high. I get a number of 404 errors in my log from users typing in the wrong case in a URL. Because it is all new to them, they figure they did it wrong and give up. I need to accommodate these people for the site to be useable.
That is why I am willing to jump through some hoops to make this work.
From a brief look around, it seems IIS and Apache on Windows are case insensitive, as the OS is too dumb to know the difference.
Maybe a dumb suggestion, but couldn't you just write a customized 404 error page which uses the zcatalog and some logic which offers one or more alternative, existing pages from your site? Like: "the address (http://yourserver/somedir/somedokument.PDF) which you entered does not exist, maybe you meant: http://yourserver/somedir/somedocument.pdf" Because from my expirience, confusing upper and lower case is not the only thing people confuse. cheers, oliver
I like this suggestion. It would keep the user, and educate them to the correct URL. Thanks. - Robert At 06:12 PM 9/24/2002 +0200, Oliver Bleutgen wrote:
Robert Allyn wrote:
I agree it is a hassle. But... My most important "customer" is 60 - 90 years old, often having just started to use a computer. For them typing, let alone email and the web are all new. They tend to exchange web page URL's via 'snail' mail, or over the phone. The chance of them using upper case when it is not needed is pretty high. I get a number of 404 errors in my log from users typing in the wrong case in a URL. Because it is all new to them, they figure they did it wrong and give up. I need to accommodate these people for the site to be useable. That is why I am willing to jump through some hoops to make this work. From a brief look around, it seems IIS and Apache on Windows are case insensitive, as the OS is too dumb to know the difference.
Maybe a dumb suggestion, but couldn't you just write a customized 404 error page which uses the zcatalog and some logic which offers one or more alternative, existing pages from your site?
Like:
"the address (http://yourserver/somedir/somedokument.PDF) which you entered does not exist, maybe you meant: http://yourserver/somedir/somedocument.pdf"
Because from my expirience, confusing upper and lower case is not the only thing people confuse.
cheers, oliver
Robert Allyn <allyn@speakeasy.org> writes:
I like this suggestion. It would keep the user, and educate them to the correct URL. Thanks.
Robert - zwiki does this, eg at http://zwiki.org (if you want to try it locally you should probably wait for the 0.11 release). Here's the current method: http://zwiki.org/zwikidir/templates/zwikidotorg/standard_error_message.dtml/... Regards, Simon
Thanks very much!! - Robert At 02:20 PM 9/25/2002 -0700, Simon Michael wrote:
Robert Allyn <allyn@speakeasy.org> writes:
I like this suggestion. It would keep the user, and educate them to the correct URL. Thanks.
Robert - zwiki does this, eg at http://zwiki.org (if you want to try it locally you should probably wait for the 0.11 release). Here's the current method:
http://zwiki.org/zwikidir/templates/zwikidotorg/standard_error_message.dtml/...
Regards, Simon
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Another simple suggestion: Write python script objects to redirect your most frequently hit 404 targets. So "FamilyAlbum" and "FAMILYALBUM" just redirect to familyalbum. It would probably cover most of the cases. I imagine your customer would only need to type in the homepage URL anyway. After that, everything would be clicking on links. If their typing 'FaMiLyAlBuM' though... try the custom 404 suggestion instead.
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Robert Allyn Sent: Tuesday, September 24, 2002 8:46 AM To: Jens Vagelpohl Cc: zope@zope.org Subject: Re: [Zope] Newbie: Case independent URLs?
I agree it is a hassle. But...
My most important "customer" is 60 - 90 years old, often having just started to use a computer. For them typing, let alone email and the web are all new. They tend to exchange web page URL's via 'snail' mail, or over the phone. The chance of them using upper case when it is not needed is pretty high. I get a number of 404 errors in my log from users typing in the wrong case in a URL. Because it is all new to them, they figure they did it wrong and give up. I need to accommodate these people for the site to be useable.
That is why I am willing to jump through some hoops to make this work.
From a brief look around, it seems IIS and Apache on Windows are case insensitive, as the OS is too dumb to know the difference.
- Robert
Robert Allyn wrote:
Hi,
I am new to Zope. It seems all url's in Zope are case dependant. Is this correct? Can I change it?
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
Is there a standard technique for dealing with this? I tried searching the archives, but could not find relevant information (my poor searching ability I am sure).
I don't know about a 'standard technique' - if there is one, I've never heard of it. Perhaps you could try using a python script with it's traverse_subpath and string.lower(...)? tim
Robert Allyn wrote:
I want family to be able to get to my photo album by entering www.mysite.com/FamilyAlbum/ or www.mysite.com/familyAlbum/ or www.mysite.com/Familyalbum/ or www.mysite.com/familyalbum/
You need to look at writing an access rule that modifies the path to be traversed as appropriate. This is not something a new user will find easy :-( cheers, Chris
participants (12)
-
Adam Manock -
Andy McKay -
Charlie Reiman -
Chris Withers -
Jens Vagelpohl -
Oliver Bleutgen -
Phil Harris -
Robert Allyn -
Simon Michael -
Tim Hicks -
Tim Hoffman -
Toby Dickenson