Solved

Can't use .htaccess

Posted on 2006-11-24
8
349 Views
Last Modified: 2010-04-20
I installed XAMPP software in my server. You can found it here:http://www.apachefriends.org/en/xampp-windows.html . But yesterday I found that maybe the .htaccess haven't any effect. I put a file .htaccess with this content in 1 folder:
------------------------
<Files "test.php">
Order Deny,Allow
Deny from all
</Files>
------------------------
But the visitor can still access into the file "test.php".
And a lot of another test, I think that .htaccess didn't affect any little to the server.
What have I to do now?
Thanks.
0
Comment
Question by:luckylukevn
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 5

Accepted Solution

by:
rowdy_h earned 250 total points
ID: 18011609
You need to check the base apache configuration file. This config file can control whether .htaccess files are allowed and, if I remember correctly, even change the name of the file to use (as a security precaution so hackers don't know what the file is called).

The default name of this config file is httpd.conf look for any references to htaccess it should be located in the conf subfolder of the apache install directory.
0
 
LVL 18

Expert Comment

by:Sam Panwar
ID: 18013559
0
 
LVL 1

Assisted Solution

by:dr-dre67
dr-dre67 earned 250 total points
ID: 18061134
In

C:\Program Files\xampp\apache\conf

open httpd.conf

search this
[CODE]
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
[/CODE]

you will find this :
AllowOverride XXX

the XXX should be " All " ( to enable .htaccess in apache for Linux & Win32 )


and search
[CODE]
#LoadModule rewrite_module modules/mod_rewrite.so

[/CODE]

and delete the " # " 


Best regards

Hachem LATRACH
0
 
LVL 4

Expert Comment

by:jackmcbarn
ID: 18657148
AllowOverride needs to be set in the httpd.conf file for htaccess files to work.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 18744255
Ugh.  Ignore me - this is a live question.
0

Featured Post

Turn Insights into Action

Communication across every corner of your business is essential to increase the velocity of your application delivery and support pipeline. Automate, standardize, and contextualize your communication processes with xMatters.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question