How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

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

How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby external_brain » 22. February 2009 14:48

Hello everyone

I have set a user and pass for XAMPP DIRECTORY PROTECTION (.htaccess) http://localhost/security/index.php
It works fine.

Now I want to remove this protection so next time I try localhost, it doesn't prompt me for user and pass. How can I do this please.

I will appreciate any advice.

Thanks in advance.
external_brain
 
Posts: 4
Joined: 22. February 2009 14:44

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby Wiedmann » 22. February 2009 15:23

Delete the ".htaccess" file.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby external_brain » 22. February 2009 15:27

I searched for .htaccess files in xampp directory. There are five of them in the following locations:

C:\xampp\htdocs\forbidden
C:\xampp\htdocs\xampp
C:\xampp\phpmyadmin\libraries
C:\xampp\security\htdocs
C:\xampp\htdocs\xampp\sqlite

Do u mean delete all of .htaccess files?
external_brain
 
Posts: 4
Joined: 22. February 2009 14:44

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby Wiedmann » 22. February 2009 15:33

Do u mean delete all of .htaccess files?

The ".htaccess" file for:
I have set a user and pass for XAMPP DIRECTORY PROTECTION (.htaccess) http://localhost/security/index.php

this location is in:
C:\xampp\security\htdocs
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby external_brain » 22. February 2009 16:09

I did as u said but it did NOT work, it still prompting me for user and pass.

I deleted the .htaccess file in C:\xampp\security\htdocs

Also I restarted the browser, apache and mysql.
external_brain
 
Posts: 4
Joined: 22. February 2009 14:44

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby Wiedmann » 22. February 2009 16:25

I deleted the .htaccess file in C:\xampp\security\htdocs ... it still prompting me for user and pass.

But not for the URI "http://localhost/security/index.php".
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby external_brain » 22. February 2009 17:37

Sorry man....I am little bit lost.

What I want is to remove XAMPP DIRECTORY PROTECTION simple as that. (Same as the first time I installed it - no password for accessing localhost).

PS Sorry I just started using XAMPP.
external_brain
 
Posts: 4
Joined: 22. February 2009 14:44

Re: How to remove XAMPP DIRECTORY PROTECTION (.htaccess)?

Postby Wiedmann » 22. February 2009 18:32

What I want is to remove XAMPP DIRECTORY PROTECTION simple as that. (Same as the first time I installed it - no password for accessing localhost).

Then you have to delete these ".htaccess" files:
Code: Select all
C:\xampp\htdocs\xampp
C:\xampp\security\htdocs
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 80 guests