jeudi 21 mars 2019

Website directories with the same name but different capitalizations

I've been asked to create a few different folders with the same name but with different capitalizations. The idea behind this is to allow for errors in capitalization when someone types in a specific url. They want to do something like this:

www.website.com/youtube www.website.com/Youtube www.website.com/youTube www.website.com/YouTube

I believe this is bad practice for many reasons, mainly that it seems confusing and unnecessary and any updates to these pages will have to be done 4 times over. I've also noticed that VSCode won't let me create these directories from within the editor and my computer, a windows machine, won't let me do it from within the file manager either.

I've seen that this can create a problem with git as it won't recognize the files as separate files regardless of capitalization.

So really my questions are:

1.) Is there a way to do this?

2.) If so, is it a bad practice?

3.) If it's a bad practice, why?

I'd like to do it for them if possible, but not if there are some unforeseen consequences that I'm not aware of. Any insight would be appreciated.

Thanks in advance.




Aucun commentaire:

Enregistrer un commentaire