You are here: Re: Forwarding Files « HTML « IT news, forums, messages
Re: Forwarding Files

Posted by J.O. Aho on 06/29/07 17:35

Randy Yates wrote:
> Hi Folks,
>
> Is there a way to have a reference to, say, http://mysite1.org/file1.pdf to
> be "forwarded" to http://mysite2.org/file2.pdf? I know I could write a cgi
> script to reside on mysite1 to do this - I was wondering if there was a
> "simpler," more html-centric way.

Best is server side redirections, if you use a proper web server like apache
you can do that.

You can make a php file with the extension pdf, which redirects to the right
file, but in that case you need to tell the web server to parse pdf files as
php scripts, which will slow your system down to a crawl each time people
access a real pdf file.

So the first option is the best one.

--

//Aho

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация