Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess --> what should go in it? and where?
(2012-07-28, 01:56 PM)FooFighter Wrote: In my /inc folder I have an "htaccess" file with the following;

deny from all
<files config.php>
Order deny,allow
deny from all

Does that look ok?

Does it have to be ".htaccess" or does "htaccess" work?

Where should we put it?

What should go inside?


Actually, you don't need to place it in the same directory as the file you'd want to deny access to. It will do great by putting the lines of code you posted into the root .htaccess file. Just make sure your RewriteBase is set to / and nothing else.
Give me reputation if you find my replies helpful

MODx, I'd recommend you to use it, you'll save time in your development.

Messages In This Thread
RE: htaccess --> what should go in it? and where? - by bowkilled - 2012-08-01, 08:03 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)