Reply to Re: redirecting to another website

Your name:

Reply:


Posted by pkg on 02/24/07 21:04

> >> 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, 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 ...


> >> 3. Use meta tag to redirect:
> >> <META http-equiv="refresh"
> >> content="0;URL=http://www.mywebsite.de/xyz/987.html">
>
> > This sounds as if I could do it without the web admins. Could you give
> > some more details what you mean? (you know, I have actually no
> > knowledge!)
>
> --- the html page ---
> <html>
> <head>
> <title>redirect</title>
> <META http-equiv="refresh"
> content="0;URL=http://www.mywebsite.de/xyz/987.html">
> </head>
> <body>
> </body>
> </html>
> --- eof ---

Perfect! Thanks, it is really easy and works fine! But maybe you can
nevertheless answer the question regarding your php-solution ...
because you say that it's saver.

pkg

[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

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