On 26.03.09 10:46, Andrew Hole wrote: > There are two files in DocumentRoot: > index.php and index2.php > > The following directive is configured in httpd.conf > <Location / > > DirectoryIndex index.php > </Location> > > There is the following instruction inside index.php : > window.location =localHost+"/index2.php?idLang=1"; > > When I invoke the URL on browser (http://localhost/) appears > http://localhost/index2.php > > How can I hide index2.php in address bar? I just want to see always > http://localhost you must not set location then and do what you need in index.php. -- Matus UHLAR - fantomas, uhlar@xxxxxxxxxxx ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. The 3 biggets disasters: Hiroshima 45, Tschernobyl 86, Windows 95 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx