defaulting to index.php??

  • Willy
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 03, 2003
  • Posts: 199
  • Status: Offline

Post July 17th, 2003, 10:01 am

I was curious how exactly i default 1 particular domain to go to index.php, rather than showing a bare directory when i surf to it?

thx,

Justin
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 17th, 2003, 10:01 am

  • Willy
  • Graduate
  • Graduate
  • No Avatar
  • Joined: Jul 03, 2003
  • Posts: 199
  • Status: Offline

Post July 17th, 2003, 10:11 am

In the httpd.conf file

<IfModule mod_dir.c>
DirectoryIndex index.cgi index.html index.php
</IfModule>


that did it

~j
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8921
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post July 17th, 2003, 1:40 pm

Yup looks like you figured out the answer before I could post it :)
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Joined: Jun 15, 2003
  • Posts: 4583
  • Loc: Maryland
  • Status: Offline

Post July 17th, 2003, 4:34 pm

Is this different for windows hosting? when I do it on myserver it goes to index.php or index.html...or any other index....?
Pixel Acres V2
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8921
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post July 17th, 2003, 5:15 pm

I am not sure how it would work for windows hosting. I am only a Linux guru ;)

Unflux or someone else might know on that one.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post July 31st, 2003, 2:32 pm

windows IIS, i believe, is defaulted to any index.* and requires no
adjustments to get it to work. However, I had no idea that php could
even run on a windows box. Learn somethign new everyday....
UNFLUX.FOTO
  • mnmarkm
  • Student
  • Student
  • User avatar
  • Joined: Jul 29, 2003
  • Posts: 82
  • Loc: Cloquet, Minnesota
  • Status: Offline

Post August 1st, 2003, 1:19 pm

By default IIS, the only document recognized is one called default.htm, you can add any name you want to be allowed as the homepage. I hope I'm not rambling...
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 6382
  • Loc: twitter.com/unflux
  • Status: Offline

Post August 1st, 2003, 8:06 pm

well, I feel dumb now cuz i knew that....sorry for the off-base answer.
UNFLUX.FOTO
  • bveditz
  • Novice
  • Novice
  • No Avatar
  • Joined: Nov 21, 2003
  • Posts: 15
  • Status: Offline

Post November 21st, 2003, 7:47 pm

In windows, using IIS. (My Computer -> Manage -> Internet Information Services) Right click on the domain you want to edit and click Properties. Click on documents, and add Index.php to the list. Also, you might want to move Index.php to the top of the list if you want it to be used before anything else. Of course, you need php installed on your system.

With Linux, besides httpd.conf you can use a .htaccess file (use the same DirectoryIndex line as listed earlier in the thread). I prefer .htaccess myself and in most cases, might be your only way of doing it (no access to the httpd.conf file)

-Brian
  • Alan2
  • Graduate
  • Graduate
  • User avatar
  • Joined: Aug 20, 2003
  • Posts: 112
  • Status: Offline

Post December 11th, 2003, 11:28 pm

Very True.

I don't have access to Httpd.conf on my hosting site, but they allow the use of .htaccess :D

In ways it's better this way because if you make a mistake you can remove the .htaccess and work on it while your site will still run, if you make a mistake in httpd.conf then it's broken untilll you finish editing.


I recently had to learn how to use .htaccess, (I set-up a website hosting and a few other bits)

If I were to start again I would use a .htaccess to add my sub domains put no site on the root directory and have everything on the sub-domains. :) (I have about 4 different site planned on the same webspace, all sub foldered from the same Domain name. :)
  • Johan007
  • Guru
  • Guru
  • User avatar
  • Joined: Sep 17, 2003
  • Posts: 1080
  • Loc: Aldershot, UK
  • Status: Offline

Post December 17th, 2003, 3:45 am

on my PC my IIS is defaulting to some frigging website :(

Any ideas? - the root directory is empty!
Read my Movie Reviews punk!
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Joined: Dec 21, 2003
  • Posts: 42
  • Status: Offline

Post December 22nd, 2003, 1:20 am

Quote:
on my PC my IIS is defaulting to some frigging website


?? i have no idea what you're talking about
  • Johan007
  • Guru
  • Guru
  • User avatar
  • Joined: Sep 17, 2003
  • Posts: 1080
  • Loc: Aldershot, UK
  • Status: Offline

Post December 22nd, 2003, 4:04 am

t3=my computer name

1. now this defaults to my website:

http://t3/default.asp

2. However when I type in this

http://t3/

It does not go to my default website but redirects to:

http://www.metadirect.net/keyword/urlRe ... T1&sid=%29%2&k=t3

I have not got a clue who metadirect are and why its going there?

I may have to try re-installing IIS.
Read my Movie Reviews punk!
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Joined: Dec 21, 2003
  • Posts: 42
  • Status: Offline

Post December 22nd, 2003, 10:05 pm

I am 99.9% sure this is a browser hi-jacker; they use every opportunity they can to redirect you to their search site; it's one of those seemingly legit MSN-like redirects, but they mess everything up;

that's why when you type

http://t3/ it redirects you; there is no TLD (the .com, .net, .org), so it's not recognized as a valid entry by the browser hijacker...

complicated, but in short, check your registry in the Internet Settings, i bet you will see this site

;) also i have a tool called HiJack This which will show you what you have on IE that i guarantee you never knew about, and in turn will let you delete it....

i cant attach it, but i will put it on my FTP shortly
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23403
  • Loc: Woodbridge VA
  • Status: Offline

Post December 22nd, 2003, 10:15 pm

Agreed with SniperDevil on the hijacking I get the same results.

Here is info on metadirect:

http://download.com.com/3000-2378-10225346.html?tag=dir

Read the Review:

Quote:
This freeware is more of a redirector than a program. Don't expect to be redirected to a search page in Google or Yahoo, though. FST will direct you to whomever paid for the keywords you just typed in. During installation, the program automatically opens your Web browser, says that the program is installed, and proposes to open another window. There's no help available, either in the program or on the company Web site, so you can't tell whether the program is working properly except by typing keywords into the address bar of your browser. Considering the wide availability of useful search toolbars and the built-in search function on many browsers, we can't see the point of this product
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 22nd, 2003, 10:15 pm

Post Information

  • Total Posts in this topic: 17 posts
  • Users browsing this forum: No registered users and 18 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.