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
https://forums.phpfreaks.com/topic/37539-how-to-force-exact-dir-name/
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...

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.