Welcome Guest, Not a member yet? Register   Sign In
Make url case insensitive
#3

[eluser]aryan_[/eluser]
[quote author="mddd" date="1273844500"]What do you mean exactly? Do you want to rewrite a url so that /assets/js/SomeScript.js would still give you a file 'somescript.js'?
Or the other way around, so that calling /assets/js/somescript.js would give you the file named 'SomeScript.js'?

I think the first is doable; you can use RewriteMap to make your urls into lowercase.
But the second one (translating a lowercase url to match files that have capitals in them) will be more difficult!
What would happen if you have a request for /assets/js/somescript.js and there are three files in that folder: somescript.js, SomeScript.js, someScript.js.
How should the server know which file to get?

So please let us know which of the two options you are looking for.[/quote]

Yes! exactly


Messages In This Thread
Make url case insensitive - by El Forum - 05-14-2010, 02:21 AM
Make url case insensitive - by El Forum - 05-14-2010, 02:41 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:00 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:09 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:41 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:48 AM
Make url case insensitive - by El Forum - 05-14-2010, 04:03 AM
Make url case insensitive - by El Forum - 05-14-2010, 04:33 AM
Make url case insensitive - by El Forum - 05-14-2010, 05:00 AM
Make url case insensitive - by El Forum - 05-14-2010, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB