defaulting to index.php??

  • Willy
  • Graduate
  • Graduate
  • Willy
  • Posts: 199

Post 3+ Months Ago

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
  • Willy
  • Graduate
  • Graduate
  • Willy
  • Posts: 199

Post 3+ Months Ago

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
  • Posts: 9101
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

Yup looks like you figured out the answer before I could post it :)
  • b_heyer
  • Web Master
  • Web Master
  • User avatar
  • Posts: 4581
  • Loc: Maryland

Post 3+ Months Ago

Is this different for windows hosting? when I do it on myserver it goes to index.php or index.html...or any other index....?
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9101
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

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.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6375
  • Loc: twitter.com/unflux

Post 3+ Months Ago

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....
  • mnmarkm
  • Student
  • Student
  • User avatar
  • Posts: 82
  • Loc: Cloquet, Minnesota

Post 3+ Months Ago

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
  • Posts: 6375
  • Loc: twitter.com/unflux

Post 3+ Months Ago

well, I feel dumb now cuz i knew that....sorry for the off-base answer.
  • bveditz
  • Novice
  • Novice
  • bveditz
  • Posts: 15

Post 3+ Months Ago

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
  • Posts: 112

Post 3+ Months Ago

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
  • Posts: 1080
  • Loc: Aldershot, UK

Post 3+ Months Ago

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

Any ideas? - the root directory is empty!
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Posts: 42

Post 3+ Months Ago

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
  • Posts: 1080
  • Loc: Aldershot, UK

Post 3+ Months Ago

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.
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Posts: 42

Post 3+ Months Ago

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
  • Posts: 23460
  • Loc: Woodbridge VA

Post 3+ Months Ago

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
  • Johan007
  • Guru
  • Guru
  • User avatar
  • Posts: 1080
  • Loc: Aldershot, UK

Post 3+ Months Ago

i have deleted my hosts.txt so thanks I will search for HiJack on the Internet.

EDIT: I think I found it http://www.wilderssecurity.com/bhblaster.html
  • SniperDevil
  • Beginner
  • Beginner
  • User avatar
  • Posts: 42

Post 3+ Months Ago

Here is a direct download link from my site:

<a href="http://download.sniperdevil.com/hijackthis.zip">http://download.sniperdevil.com/hijackthis.zip"</a>

hope i could help!

Post Information

  • Total Posts in this topic: 17 posts
  • Users browsing this forum: No registered users and 8 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.