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

Posted by J.O. Aho on 06/29/07 19:47

Randy Yates wrote:
> Andy Dingley <dingbat@codesmiths.com> writes:
>
>> On 29 Jun, 17:25, Randy Yates <y...@ieee.org> wrote:
>>
>>> Is there a way to have a reference to, say,http://mysite1.org/file1.pdfto
>>> be "forwarded" tohttp://mysite2.org/file2.pdf?
>> Host on Apache
>>
>> Configure this in .htaccess with a 301 or 302 (temporary) redirect.
>>
>> Easy.
>
> I think I can do that - I have a VM hosted web account where I think I
> "own" my own httpd.
>
>> Search the group archives on mapping one domain onto another, for the
>> whole site. It's a fairly common question.
>
> I only wanted certain files within the "mysite1" domain to operate this way,
> not all on the entire domain.

Redirecting in Apache is quite simple, you can do that with regular
expressions or give the full path.

full paths:
RewriteEngine on
RewriteRule file1.pdf http://mysite2.org/file2.pdf

reg-expression:
RewriteEngine on
RewriteRule ^(/[c|d]/winnt/.*) http://127.0.0.1/$1


--

//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

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