Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-23-2004, 01:06 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default PHP index.php

Hi all,

I have recently modified my site so that there is a PHP Include on each page that links to an external tree-menu.

The index.htm page must now be index.php - so how would I get the url to point directly to this, rather than seeking an index.htm page..?

Does this make sense..?

Thanks in advance,
Darren.
Reply With Quote
  #2 (permalink)  
Old 02-23-2004, 02:45 PM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Surely you just set your site's default document to index.php don't you? Are you hosting your own site? or is it on a shared server? I would have thought that index.php would automatically be available as a default, but best to check with your hosting provider if applicable.

Paul
Reply With Quote
  #3 (permalink)  
Old 02-23-2004, 02:52 PM
WebProWorld Pro
 

Join Date: Jan 2004
Location: Milton Keynes, UK
Posts: 117
DarrenPWS RepRank 0
Default

Hi Paul, thanks for that, you're right.

The problem I had was I didn't delete the index.htm file - So that was first choice over the index.php... It's all starting to make sense to me...

Thanks again,
Darren
Reply With Quote
  #4 (permalink)  
Old 02-23-2004, 10:44 PM
labrynth_of_fire's Avatar
WebProWorld Pro
 

Join Date: Nov 2003
Location: -_-
Posts: 187
labrynth_of_fire RepRank 0
Default index.php question

How do I get index.php to be my index page?
I deleted index.html and uploaded index.php, but it didnt become my index page, how can I change this?
(BTW, almosy my entire site is in PHP now!)
__________________
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
|- >(^_^)> | (t^^t) | <(^_^)< -|
- - - - - - - - - - - - - - - -
Reply With Quote
  #5 (permalink)  
Old 02-23-2004, 11:20 PM
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: Toronto, Canada
Posts: 2,193
cyanide RepRank 0
Default

Hey Labrynth

You discovered php, awesome!
Are you familiar with .htaccess ?
If not...
Open notepad and call it htaccess.txt
Inside it put
Code:
DirectoryIndex index.php index.html
The server will look for these files in order of appearance (note: that index.php is listed first)

Upload to your root directory, then rename it to .htaccess - and you should be good to go
__________________
|
Web Hosting Guru
| Need Help For Your Forum?
Reply With Quote
  #6 (permalink)  
Old 02-24-2004, 08:10 AM
paulhiles's Avatar
WebProWorld 1,000+ Club
 

Join Date: Jul 2003
Location: UK
Posts: 2,803
paulhiles RepRank 0
Default

Hi all,

Just to let you know that I've merged labyrynth's and Darren's posts, seeing as they were virtually dealing with an identical question. Maybe the pair of you can bounce ideas off one another if you're at the same stage with PHP?

Paul
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0