Where is htdocs

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Where is htdocs

Postby bURov » 04. December 2009 03:54

I send in browser address
http://localhost
And browser convert it to
http://localhost/xampp
And get index.php from folder
c:\xampp\htdocs\xampp
It's true?
Why not from c:\xampp\htdocs?
bURov
 
Posts: 5
Joined: 04. December 2009 03:45

Re: Where is htdocs

Postby Izzy » 04. December 2009 04:13

http://localhost/ gets the file \xampp\htdocs\index.php which redirects the browser to the \xampp\htdocs\xampp folder where all the other XAMPP demo files are located.

This prevents clutter in the htdocs folder so you can easily add your own files in there after deleting the 2 XAMPP index files index.html and index.php.

Helpful XAMPP reading for new users:
\xampp\readme_en.txt file

http://www.apachefriends.org/en/xampp-windows.html

http://www.apachefriends.org/en/faq-xampp-windows.html
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Where is htdocs

Postby bURov » 04. December 2009 04:27

If i delete c:\xampp\htdocs\index.php
browser also redirects to the \xampp\htdocs\xampp folder
bURov
 
Posts: 5
Joined: 04. December 2009 03:45

Re: Where is htdocs

Postby Izzy » 04. December 2009 04:33

bURov wrote:If i delete c:\xampp\htdocs\index.php
browser also redirects to the \xampp\htdocs\xampp folder
Then clear your browser's cache as you are being served a cached file and not a fresh file from the server.

Once your browser's cache is cleared you can then access the XAMPP Welcome Page by typing http://localhost/xampp/index.php in your browser.

After cache clearance and both index files are deleted in the htdocs folder http://localhost/ should give you a directory listing.


BTW, you should clear your browser's cache often when working at localhost level especially when you have strange unusual issues like the one you posted above.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: Where is htdocs

Postby bURov » 04. December 2009 05:08

Thanks
bURov
 
Posts: 5
Joined: 04. December 2009 03:45


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 29 guests