PJ
|
| Posted: 12/31/2002, 6:54 AM |
|
If I create a standard html 'index' page the visitor can access this by
going to www.mydomain
If I create an index page in CSS using php4 + templates and name it
index.php the page isn't visible.
Why?
|
|
|
 |
RonB
|
| Posted: 12/31/2002, 8:32 AM |
|
Your servers is set to open with index.htm(l) with php the index.php is
expected. Alter the settings on your webserver so it always starts with
index.php.
if it's your own server you can do this(if you're using apache) by editing
the httpd.conf file. If not it might be possible to create or alter the
htacces file on your webservers web directory by adding :
DirectoryIndex index.php index.htm index.html
RonB
RonB
"PJ" <apis@globalnet.co.uk> schreef in bericht
news:ausb2o$dob$1@news.codecharge.com...
> If I create a standard html 'index' page the visitor can access this by
> going to www.mydomain
>
> If I create an index page in CSS using php4 + templates and name it
> index.php the page isn't visible.
>
> Why?
>
>
|
|
|
 |
DonB
|
| Posted: 12/31/2002, 6:48 PM |
|
If all else fails, you could add this to the <head> section of your
index.html:
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://www.mydomain/index.php">
This will automatically redirect to the php page. Not ideal, but if
"pretty" fails, "ugly" works.
(there is a chance - since it is browser-controlled - that there may be
"dumb" browsers that can't understand this META construct)
DonB
"RonB" <r.borkent@123chello123.nl> wrote in message
news:ausgr3$ojo$1@news.codecharge.com...
> Your servers is set to open with index.htm(l) with php the index.php is
> expected. Alter the settings on your webserver so it always starts with
> index.php.
> if it's your own server you can do this(if you're using apache) by editing
> the httpd.conf file. If not it might be possible to create or alter the
> htacces file on your webservers web directory by adding :
> DirectoryIndex index.php index.htm index.html
>
> RonB
>
> RonB
>
> "PJ" <apis@globalnet.co.uk> schreef in bericht
>news:ausb2o$dob$1@news.codecharge.com...
> > If I create a standard html 'index' page the visitor can access this by
> > going to www.mydomain
> >
> > If I create an index page in CSS using php4 + templates and name it
> > index.php the page isn't visible.
> >
> > Why?
> >
> >
>
>
|
|
|
 |
PJ
|
| Posted: 01/01/2003, 2:33 AM |
|
Thanks DonB - this is what I have had to do. As you say 'ugly' 
> (there is a chance - since it is browser-controlled - that there may be
> "dumb" browsers that can't understand this META construct)
>
> DonB
>
>
>
>
> "RonB" <r.borkent@123chello123.nl> wrote in message
>news:ausgr3$ojo$1@news.codecharge.com...
> > Your servers is set to open with index.htm(l) with php the index.php is
> > expected. Alter the settings on your webserver so it always starts with
> > index.php.
> > if it's your own server you can do this(if you're using apache) by
editing
> > the httpd.conf file. If not it might be possible to create or alter the
> > htacces file on your webservers web directory by adding :
> > DirectoryIndex index.php index.htm index.html
> >
> > RonB
> >
> > RonB
> >
> > "PJ" <apis@globalnet.co.uk> schreef in bericht
> >news:ausb2o$dob$1@news.codecharge.com...
> > > If I create a standard html 'index' page the visitor can access this
by
> > > going to www.mydomain
> > >
> > > If I create an index page in CSS using php4 + templates and name it
> > > index.php the page isn't visible.
> > >
> > > Why?
> > >
> > >
> >
> >
>
>
|
|
|
 |