472,143 Members | 1,695 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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 6866
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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.