Thread Rating:
  • 3 Vote(s) - 2.33 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess --> what should go in it? and where?
#1
Star 
In my /inc folder I have an "htaccess" file with the following;

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

Does that look ok?

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

Where should we put it?

What should go inside?

Huh
#2
i don't have one in my .inc folder...
there is no need anyway index.html/index.php/index.html is set to by default to be homepages..
<snip - images exceed maximum total dimensions (see the rules)>
#3
This user has been denied support. This user has been denied support.
.htaccess (without any extension).
#4
(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
</files>

Does that look ok?

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

Where should we put it?

What should go inside?

Huh

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.


Forum Jump:


Users browsing this thread: 1 Guest(s)