Could you please give more information. Do you want a perl client side solution (for example a script that you can run to change the word document to have different urls). Or do you want a server side solution so that when the link is selected a proper page is displayed? You really need to further refine what and where you want to happen.

If it's server side. Just create the proper files with the meta tag stuff.

<html> <body> <meta http-equiv="refresh" content="2;url=http://www.your.com/construction.html"> Redirecting to construction page! </body> </html>
Of course you could also do some funky things like create a custom error handler and hook that into apache.

Now if what you want is a client side solution where you actually need to modify the word doc - then I can't help you except to say you have a mixed up idea of where redirection happens. The only thing that happens in the word doc is an HTTP request is made - its up to the server to redirect. If you want to handle this on the client, you need to modify the doc and replace the bad URLs with good ones.

-derby


In reply to Re: Re: Re: redirecting http in word docs by derby
in thread OT: redirecting http in word docs by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.