Thanks.
I don't like to use
http://mysite in my call, because I can install my
solution in differant location,
http://mysite1 http://mysite2......
And I like that the code works in all situations
Thanks.
"Pertti Kosunen" <pertti.kosunen@kolumb.us.fi_invalid> wrote in message
news:c65omk$saq$1@phys-news1.kolumbus.fi...[color=blue]
> "toufik toufik" <toufiki@sympatico.ca> wrote in message
> news:DEghc.12644$CO3.662052@news20.bellglobal.com. ..[color=green]
> > Hi,
> > I've a web site in the address
http://mySite.com
> > in the root, I've a file index.html
> >
> > I've some subfiolders insid root/sub1/sub2
> >
> > I like to add an html file (or php) index.html that call the index.html[/color][/color]
of[color=blue][color=green]
> > the root (in order to protect)
> > Now I've created 2 different index.html because I use relative path to
> > design the root (../index.html and ../../index.html)
> >
> > I like to have the same file in all folders,but I don't know how to call[/color]
> the[color=green]
> > root folder.[/color]
>
> If you want sub1/index.php and other subN/index.php to redirect to root,[/color]
use[color=blue]
> header function.
>
> <?php
> header("Location: http://mysite.com/index.html"); /* Redirect browser */
>
> /* Make sure that code below does not get executed when we redirect. */
> exit;
> ?>
>
>[/color]