Jump to content

Uppercase Vs Lowercase


Samrc
 Share

Recommended Posts

On my employer's current web host CAPITALIZATION is no problem.

 

http://www.lambertusa.com/color/id12.htm

and

http://www.lambertusa.com/COLOR/ID12.HTM

and

http://www.lambertusa.com/COLOR/id12.HTM

and

http://www.LAMBERTUSA.com/Color/id12.htm

and

http://www.lambertUSA.com/COLOR/ID12.HTM

 

All work fine and take you to the same page no matter how it is typed. It's the only really nice feature they offer!

 

The actual file should be the first version as that's the way the folder and files are made.

 

I have noticed on my TCH account that a 404 is reached if the CAPS aren't exactly correct. Is there a way to override as done at my employer's current webhost? If not, I will have to travel page by page to verify EVERY LINK before I move the site to TCH. Serious time and pain!!!! Please note site was started before I knew that I need to be careful of caps.

 

-Samantha

Link to comment
Share on other sites

The difference is that the site is currently on a Windows server and we are running Linux servers. The capitalization in the domain name doesn't matter but the filenames do. For example, if you put a file called Index.html in your public_html directory you will get a directory instead of your page but if you change it to index.html it will load fine.

 

I tend to be sure that all of my filenames are lowercase letters only which makes things easier.

Link to comment
Share on other sites

All UNIX and Linux based Web Servers are case sensitive in regard to file names. Mac OS or Windows NT based servers are not normally (since Mac OS and Windows do not use case-sensitive file systems). If you use the browse or the Point & Shoot method to make your links, then windows will create the link with the same case as your file name.

 

When working in Mac OS/Windows, changing the case on a file name doesn't make it a different file. The Mac OS/Windows sees "myfile.html", "MyFile.HTML", and "MyFiLe.HtMl" as the same file. But to a UNIX or Linux based server, they are three different files. This may cause confusion if you change the case in the name of some linked files. The files will also work on a Mac OS or Windows NT based server. But on a UNIX or Linux based server the links will be broken.

 

The best rule of thumb is to determine a naming convention for your files, including what case will be used, then stick to it. Avoid renaming files after they've been linked.

 

The web is more restrictive on the use of special characters in file names. The following characters can't be used the in file names:

 

• forward slash ( / )

 

• more than one dot ( . ). The only period used has to be part of the extension as in index.html

 

• You can't use the hyphen ( - ) as the first character in a file name.

Link to comment
Share on other sites

As I mentioned in my first post, I began building the site before I knew there could be a problem with capitalization. But for quite some time, I have been trying to make it a habit to use all lowercase. I expect that many maybe (50 - 80) pages will have to be manually pruned before I move the site...bummer. Yuck!

 

I was aware of / . and - issues and don't have to worry about those, only CAPS and Caps, and capS, etc.

 

Yes, you are right. The current host is running Windows servers. Besides caps, is there anything else that could throw a wrench in the works due to changing to Linux server?

 

Thanks again for such a quick and complete response! This is EXACTLY why I want to move the company site to TCH, even if I have to spend time cleaning first!

SUPPORT! What a wonderful concept! Whoda thunk it?!

Rock Sign

 

-Samantha

Link to comment
Share on other sites

I can't think of anything else off the top of my head that might slow you down moving your site. I know it is kind of a pain to check all your file-names with your links, but I do believe that Linux makes for a much better server than does M$. I've used both, administered both, and I'll have to say there was MUCH less frustration with the Linux server. Linux is much more secure, and for an example I run a Linux firewall on my home network which has run non-stop for the past 2 years without a single crash. Try that with Windows! ;)

 

Sorry for the hassle you're facing, but it will well be worth it, as you have already seen by the response to your question here in the forum.....happy de-casing! :D

Link to comment
Share on other sites

Thanks Turtle. I will take you up on that offer!

 

I saw that answer posted on the FAQ...I'm glad.

 

-Samantha

Link to comment
Share on other sites

This place is filled with really nice folks. Thanks for the offer Doc!

 

(I want to put your animated avatar on my desktop to remind my PC that I can do as much damage to it as it's done to me...!)

 

-Samantha

Link to comment
Share on other sites

Turtle....HG fixed me up with that .. lol...I like it...

 

Samrc ...there are lots of nice folks on here. It's like a big happy family! I know what you mean about the 'puter situation.... it can be downright frustrating can't it? :o

Link to comment
Share on other sites

Samantha:

 

Not sure what software you are using to create your files but see if there is a global replace (case sensitive). If so (which there should be), it would be a snap to change all the HTML within the site quickly.

 

Hope there is.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...