Jump to content

How to force exact dir name.


Twentyoneth

Recommended Posts

I have directories like "New" and "Old", you can get to them by typing "New" "new" "old" "old", not recognizing the capital letters, how to I make it where only type "New" and "Old" will work because they have capitals in them, also for dirs like "NewOld", you can get to them by typing "NewOld" or "newold", I need capitalization recognition....any help?

Link to comment
Share on other sites

Well, what I mean is, how can I make it where you cannot get to this address: http://whatever.com/ThoMas by typing http://whatever.com/thomas

 

I need this for some code that checks to see if the user is the same as the directory they are in to show certain code. But also when a guest visits the site via http://whatever.com/thomas, the code that checks for ThoMas doesn't work...

Link to comment
Share on other sites

Can there be a ThoMas and a thomas? If not, just make the code convert the name to lowercase in all instances to check for equality.

 

It seems like this is something that should be handled with mod_rewrite, not actual directories - that might make it easier in the long run.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.