Current location: Hot Scripts Forums » Other Discussions » Web Servers » newby question


newby question

Reply
  #1 (permalink)  
Old 04-14-08, 08:45 AM
88mph 88mph is offline
Newbie Coder
 
Join Date: Mar 2008
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
newby question

my current URL = www.blahblah.com/index.php

how can i make it just www.blahblah.com?
Reply With Quote
  #2 (permalink)  
Old 04-14-08, 09:05 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Moved to web servers section... this has nothing to do with PHP.


Did you try accessing it via just blahblah.com ? Usually the directory index is index.html and index.php, that means if no specific file in a folder is requested, it'll open this file.

Otherwise try putting this in a .htaccess file:
Code:
DirectoryIndex index.php index.html index.htm

Last edited by Nico; 04-14-08 at 10:05 AM.
Reply With Quote
  #3 (permalink)  
Old 04-14-08, 10:00 AM
Jay6390's Avatar
Jay6390 Jay6390 is offline
Code Master
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,330
Thanks: 0
Thanked 0 Times in 0 Posts
Is there a reason index.html is in that code twice Nico? or is it meant to be index.htm for the third page?
__________________
Useful Tutorials
[ PHP Video-1-2-3 ] [ MySQL 1-2-3 ]
For any php function reference type

www.php.net/FunctionName
Reply With Quote
  #4 (permalink)  
Old 04-14-08, 10:03 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Yeah my bad. One was meant to be just htm.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about MySQL. drewhiggins Database 2 01-25-07 10:14 PM
Injecting a string into an If Statement ? nova912 PHP 4 07-21-06 02:04 PM
Posting a question / answer on site markcody PHP 2 11-23-04 01:58 PM
[PHP] Array question UmiSal Script Requests 1 04-05-04 01:52 PM
question and answer software jaydifox C/C++ 0 02-21-04 09:26 AM


All times are GMT -5. The time now is 01:26 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.