?
Solved

Can't use .htaccess

Posted on 2006-11-24
8
Medium Priority
?
353 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 1000 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 1000 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

Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

Question has a verified solution.

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

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…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

752 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