PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 5th, 2000, 10:51 PM
bvrtrimmer bvrtrimmer is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 14 bvrtrimmer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Silly question, but you know how when you type www.something.com it opens up the index.html page in that direcory, how can I make it open up a php page instead?

Should I use a meta tag on my index.html page to take me to default.php and set the time to zero so people do not see the transition?

Another silly question, when I link you to a page you always see the www.something.com/pagename.html part.
What do I need to do so you don't see this, just the www.something.com part instead.

thanks

Reply With Quote
  #2  
Old June 6th, 2000, 01:55 AM
immortal immortal is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 20 immortal User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to immortal
As far as the index.php3 as an index page goes, I assume that it's existence alone will default it as the folder index.. ?!? The presence of an index.html/htm page may take presidence however.

Correct me if I'm wrong...

Keeping the whole site under the root domain in the address bar requires the index be a frameset with all following pages loading in one of the frames.

------------------
---------
Lanny
dtm

Reply With Quote
  #3  
Old June 6th, 2000, 05:56 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>Should I use a meta tag on my index.html page to take me to default.php

No. You should use htaccess if you are allowed to.

#http://www.something.com/.htaccess

DirectoryIndex index.html index.php3 default.php pagename.html
<Files ~ "^.ht">
Order deny,allow
Deny from all
</Files>

###########################################
Please note the order of DirectoryIndex makes difference. If index.html is found, it will be the default page to load first. If none of them is found, a directory listing will be shown. So be caution to put the appropriate file name to that line.

<Files ~ "^.ht"> is to hide any hidden file starting with ".ht" such as .htaccess or .htpasswd.

Reply With Quote
  #4  
Old June 6th, 2000, 11:53 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Central Florida, USA
Posts: 2,306 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 6 h 42 m 51 sec
Reputation Power: 60
The above applies if you are hosted by an ISP that supports PHP but has not configured their webserver correctly. Silly Question: have you just tried deleting the index.html file and then seeing if index.php works?

If you have access to the configuration of your own webserver, though, you should be able to set global settings so that index.php files will be indexed.

In Apache, just open the httpd.conf file and search for DirectoryIndex, then modify that line the same way you would in a .htaccess file.

I'm not familiar with the configuration for other webservers, but it should be similar, if not easier.

Reply With Quote
  #5  
Old June 6th, 2000, 11:26 PM
Dave Bryant
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If your ISP is running Apache have them modify the httpd.conf file at this line
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index. Separate multiple entries with spaces.
#
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.php default.php default.html default.htm
</IfModule>
[/code]

The important part is that index.php (or whatever prefix you parse) is on the line after Directory Index....just as the other guy said. If your ISP runs NT they need to add this in the Internet Management Console for you domain.

------------------

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > make a php page my index page, how???

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap