469,963 Members | 1,323 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

How to redirect a pdf

mvr
Hi all

I was using Response.Redirect for ASP pages, and
<META HTTP-EQUIV="Refresh"
CONTENT="5; URL=html-redirect.html"to redirectand html page.
Is there any we can redirect a pdf document from one server to another.
http://oldserver/test.pdf to http://newserver/newtest.pdf.
Any suggestions???

Thanks
mvr
Aug 15 '06 #1
1 6812
mvr wrote on 15 aug 2006 in microsoft.public.inetserver.asp.general:
I was using Response.Redirect for ASP pages, and
<META HTTP-EQUIV="Refresh"
CONTENT="5; URL=html-redirect.html"to redirectand html page.
Is there any we can redirect a pdf document from one server to another.
http://oldserver/test.pdf to http://newserver/newtest.pdf.
Add a line or two in your 404.asp file capturing the not found pdf,
and do a redirect:

qstr = lcase(Request.ServerVariables("QUERY_STRING"))
if instr(qstr,"/test.pdf")>0 then
response.redirect "http://newserver/newtest.pdf"
end if

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Aug 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

10 posts views Thread by Bob Garbados | last post: by
3 posts views Thread by Paul | last post: by
7 posts views Thread by Donna Hawkins | last post: by
1 post views Thread by Peter Kirk | last post: by
2 posts views Thread by Mark Dengler | last post: by
3 posts views Thread by Justin | last post: by
6 posts views Thread by Sam | last post: by
6 posts views Thread by Peter Row | last post: by
10 posts views Thread by Eirik Eldorsen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.