如何设置index.html将wget查询redirect到其他页面/文件?

如果我的服务器在example.com ,正在运行

 $ wget example.com 

只会下载文件index.html 。 我怎样才能使wget

  • 下载另一个文件,而不是index.html
  • 沿索引,html下载这个文件

我可以find所有的redirectpubkey.asc是我的文件):

  1.  <meta http-equiv="Refresh" content="seconds; url=pubkey.asc "> 
  2.   <script language="javascript"> window.location.href = "http://example.com" 
  3.  <link rel="canonical" href="pubkey.asc"/> 
  4.  <script> document.location.href="pubkey.asc";</script> 
  5. <script>window.location.href='pubkey.asc';</script>

  6.  <meta http-equiv="refresh" content="0; url=pubkey.asc" /> 

PS:我在这里发布而不是web.stackexchange,因为涉及wget机制。

 <!DOCTYPE html> <head> <meta http-equiv="refresh" content="0;URL=pubkey.asc"> </head> <body> </body> </html> 

结合wget -r http://example.com

同时下载index.html和pubkey.asc