I installed a self hosted URL shortener to my mydomain.co If i enter into a browser example.co or http://www.example.co (with and without trailing /), I see the file and folder list for the domain.
Since I have a URL Shortener installed (Yourls is the program) for everything after the domain name would be a valid link (ie http://example.co/myshortlink and should redirect) , but if someone enters just the domain name, I would like to redirect to another page or load a index.html file and not list my files/folders that would be under just the root domain.
Please help. Thank you for taking the time to answer. James