Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
can I make .php my index page
Old 08-20-2004, 05:02 PM can I make .php my index page
Junior Talker

Posts: 1
Trades: 0
Hi,

Is it possible to make my index page a .php page? for some reason my FTP is not recognizing it...it keeps defaulting back to the .html page...any ideas?
JonnyToronto is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-20-2004, 05:08 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Index pages are used by web browsers to know what to display when no page name is specified on the URL.

FTP is used for transferring files back and forth.

These things don't relate to each other in any way. I guess I'm confused... what are you trying to do?
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 08-20-2004, 05:19 PM
Unknown.

Posts: 1,693
Trades: 0
If you mean you want to have the index.php set as the default page to load...

Simply add this line to the .htaccess file..
Code:
DirectoryIndex index.php
Just insert into notepad and save as .htaccess and remember to change the save as type option to All files

Then just upload to server

Hope this helps

-James
Dark-Skys99 is offline
Reply With Quote
View Public Profile
 
Old 08-20-2004, 05:22 PM
Calash's Avatar
Super Talker

Posts: 104
Trades: 0
Some web hosts include index.php in the index search order (or whatever it is called). If they do, all you will have to do is remove any other index. file and it should default to index.php.
__________________

Please login or register to view this content. Registration is FREE
Calash is offline
Reply With Quote
View Public Profile Visit Calash's homepage!
 
Old 08-20-2004, 05:25 PM
Anacrusis's Avatar
Defies a Status

Posts: 2,099
Name: Adam
Location: Colchester CT
Trades: 0
Yes, I think index.html will be used first, then index.php

As Calash pointed out, simply remove the .html page and the php page should get displayed.
Anacrusis is offline
Reply With Quote
View Public Profile
 
Old 08-21-2004, 01:13 AM
Average Talker

Posts: 22
Trades: 0
Just remove all the other default pages and set only index.php page...

It searches in the order u have in the config file like index.html,default.html and more...

Regards
V. Kumaran
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Last edited by kumaran; 08-21-2004 at 01:20 AM..
kumaran is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to can I make .php my index page
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68558 seconds with 12 queries