LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2012, 01:34 AM   #1
CBIL360
LQ Newbie
 
Registered: Apr 2012
Location: Miami, Florida
Posts: 3

Rep: Reputation: Disabled
Does uppercase and lowercase letters does matter in linux server


Hello All,
Recently I am moving my website from windows server to linux. I got information from few of my friends that in linux :
  • CBIL360Redesign/index.html
  • cbil360Redesign/index.html
are two different urls and it can cause result not found(404)
please help me to understand as well as to resolve this problem.
 
Old 04-11-2012, 01:51 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Yes. Linux is case sensitive. Both the URLs you have mentioned are different for Linux even though the name seems to similar.
 
Old 04-11-2012, 01:56 AM   #3
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi CBIL360,

The information given is correct: Unix and Linux are case sensitive. FooBar, foobar and fooBar are 3 different files (or directories) when seen from linux.

You cannot switch off case sensitivity when working with linux. The only way to solve your problem is to make sure the correct case sensitive files and directories are used.

Hope this helps.
 
Old 04-11-2012, 02:01 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Expanding, all versions of Unix (inc Linux) are case sensitive for both cmds and files; basically everything in fact.
Also, do not use spaces in cmds or filenames; technically its allowed, but most *nix tools/cmds assume a space means a new parameter ie
Code:
cmd this string
is interpreted as 'cmd' followed by 2 parameters 'this' & 'string', not 'cmd' followed by 'this string'.

HTH
You may find this link handy
http://rute.2038bug.com/index.html.gz

Welcome to LQ
 
Old 04-11-2012, 02:34 AM   #5
CBIL360
LQ Newbie
 
Registered: Apr 2012
Location: Miami, Florida
Posts: 3

Original Poster
Rep: Reputation: Disabled
I am concerned with solution, what should be done to resolve this issue, any particular code, method?
 
Old 04-11-2012, 02:43 AM   #6
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,420

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by CBIL360 View Post
I am concerned with solution, what should be done to resolve this issue, any particular code, method?
Using the correct case for your target URL would be a good start

You could also maybe simlink common mis-cased url's to the correct one.
 
Old 04-11-2012, 06:07 AM   #7
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,512

Rep: Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435Reputation: 2435
in some cases you can create links, so CBIL360Redesign will point to cbil360Redesign (and you can reach both, but CbIl360reDesiGn will not work...). This kind of workarounds not really suggested...
 
Old 04-11-2012, 09:41 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
I'd say (assuming that the different named files always contain the same data) that using the mod_rewrite module https://httpd.apache.org/docs/2.2/rewrite/ is what you want eg http://www.yourhtmlsource.com/sitema...rewriting.html http://www.sitepoint.com/guide-url-rewriting/.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change all uppercase to lowercase with vi?? ufmale Linux - Newbie 4 07-05-2013 05:16 AM
[SOLVED] Trying to find number of uppercase and lowercase letters. kasparov29 Linux - General 8 11-10-2011 12:19 PM
Lowercase to Uppercase stellafrank Linux - Software 2 11-16-2006 06:46 AM
lowercase windows mysql tables became uppercase import to linux Niceman2005 Linux - Software 2 06-06-2006 03:18 AM
Converting lowercase to uppercase noodle123 Programming 1 05-17-2002 03:12 PM


All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration