是否可以将链接重定向到pdf文件 [英] is it possible to redirect a link to a pdf file

查看:168
本文介绍了是否可以将链接重定向到pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将链接重定向到pdf文件?

is it possible to redirect a link to a pdf file?

这是我的网站:www.mysite.com

This is my site: www.mysite.com

然后我创建了一个重定向链接,如果我打开www.mysite.com/documentation,将会打开一个index.html文件,但是目前,这个index.html文件表示它正在构建中.

And I createad a redirect link that if I open www.mysite.com/documentation - an index.html file will open but for now this index.html file says it's under construction.

我可以将链接重定向到pdf文件吗? 我将pdf文件上传到服务器.这样一来,如果我打开www.mysite.com/documentation,则将打开名为thedocument.pdf的pdf文件.

Can I redirect the link to a pdf file? I uploaded the pdf file into the server. So that if I open www.mysite.com/documentation, my pdf named as thedocument.pdf will open.

有可能吗?

推荐答案

如果您的网络托管服务提供商不允许您更改默认扩展名(即添加pdf),则可以创建HTML页面作为登录页面然后重定向到PDF.

If your web hosting provider won't allow you alter the default extensions (i.e. to add pdf) then you could create a HTML page to act as the landing page and then redirect to the PDF.

此处的详细信息: http://www.web-source.net/html_redirect.htm

这篇关于是否可以将链接重定向到pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆