Reply to Re: redirecting to another website

Your name:

Reply:


Posted by J.O. Aho on 02/24/07 21:24

pkg wrote:
>>>> 2. Use server side script (php):
>>>> <?php header("Location:http://www.mywebsite.de/xyz/987.html"); ?>
>>> as before
>> If php is enabled, then there is nothing to ask the admins, it's just create a
>> php script and put it on the server in the same way as a html page. The
>> example is everything you need.
>
> well ... the first point is that in the directory abc there are more
> html files than the metionned 123.html. So I guess if I put this php
> script in the resp. directory all sites are redirected,

You need to create a php script for each page to redirect, and you will most
likely have to tweak with .htaccess (requires the web server uses apache) to
make parse html files as php file.

> which I do not
> intend. Second: For the script, do I have to create a file (how does
> it haver to named?) with just
> <?php header("Location:http://www.mywebsite.de/xyz/987.html"); ?>
> in it? ... sorry, as I said, I hpe I don't sound too dull ...

Usually a php file is called something like hello.php, but with use of
..htaccess in the directory where you intend to place the php scripts, you
could make it work even if the file was called hello.html.


With your experience it may be better to use the meta tag, it will work in
most cases.

--

//Aho

[Back to original 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

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