开发者

URL Shortcut in Web Directory [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

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 question

I'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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜