URL Shortcut in Web Directory [closed]
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this questionI'm looking for a way to upload a special type of file to a web directory. The file will be indexed with all the other files, but when clicked, will take the开发者_StackOverflow社区 user to a different web address.
Here's an example:
A directory lists three files:
- earth.png
- mars.png
- NASA.url
The .url file (the extension doesn't matter - just an example) should lead the user to NASA's website.
Think of a Windows shortcut. Shortcut files are listed alongside "real" files in a folder; however, when they're opened, they lead to a different location entirely.
Of course, I could create a simple page with links, but I'm asking if this is possible to do using the server's indexing functionality.
If there was an issue with the clarity of this question, I apologize. Hopefully it's easier to understand now.
I have come to the conclusion that creating a custom indexing script is the best (and perhaps, only) way to do this.
精彩评论