MyBB Community Forums

Full Version: htaccess --> what should go in it? and where?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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..
.htaccess (without any extension).
(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.