CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Problem with index page

Print topic Send  topic

Author Message
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?
> > >
> > >
> >
> >
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.