case mismatch can cause broken links and images on a Linux server
Category linux
By now most people know that, when planning to move a Domino server from Windows to Linux, it's a good idea to check all code for backslashes (\), because Linux uses forward slashes (/) instead. But an oft-overlooked reality is that filepaths in Linux are also case-sensitive: /stuff/ and /Stuff/, for example, are two entirely different folders. Hence, if your server contains a folder inside /data/domino/html for centralized storage of script, CSS, images, etc., for example, any links to those files need to use the correct case or those links will be broken. While I'm a big fan of camel case for class and variable names in code, I prefer lower case paths for files; by all means, feel free to use camel, but keep in mind that every time you reference the path you'll need to remember whether you used standard camel (i.e. CamelCase) or lower camel (i.e. camelCase) or you're in for a boatload of 404's.
By now most people know that, when planning to move a Domino server from Windows to Linux, it's a good idea to check all code for backslashes (\), because Linux uses forward slashes (/) instead. But an oft-overlooked reality is that filepaths in Linux are also case-sensitive: /stuff/ and /Stuff/, for example, are two entirely different folders. Hence, if your server contains a folder inside /data/domino/html for centralized storage of script, CSS, images, etc., for example, any links to those files need to use the correct case or those links will be broken. While I'm a big fan of camel case for class and variable names in code, I prefer lower case paths for files; by all means, feel free to use camel, but keep in mind that every time you reference the path you'll need to remember whether you used standard camel (i.e. CamelCase) or lower camel (i.e. camelCase) or you're in for a boatload of 404's.
Comments
Posted by Peter von Stöckel At 04:42:16 AM On 03/04/2009 | - Website - |
Posted by Keith Strickland At 03:54:09 PM On 03/03/2009 | - Website - |