Skip to content

YOURLS/force-lowercase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Plugin for YOURLS : Force Lowercase Listed in Awesome YOURLS!

What for

Force short urls to lowercase so that http://sho.rt/ABC is the same as http://sho.rt/abc

How to

  • In /user/plugins, create a new folder named force-lowercase
  • Drop these files in that directory
  • Go to the Plugins administration page and activate the plugin
  • Have fun

Disclaimer: this is stupid

The web is case sensitive, google.com/ABOUT is different from google.com/about. Deal with it.

More about this: see http://www.w3.org/TR/WD-html40-970708/htmlweb.html and particularly the part that says:

URLs in general are case-sensitive (with the exception of machine names). There may be URLs, or parts of URLs, where case doesn't matter, but identifying these may not be easy. Users should always consider that URLs are case-sensitive.

This said, lots of users are pestering me for that kind of plugin, so there it is. Have fun breaking the web! :)

License

Do whatever the hell you want with it.