MyBB Community Forums
htaccess --> what should go in it? and where? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: MyBB 1.6 (https://community.mybb.com/forum-138.html)
+------ Forum: 1.6 Security Management and Support (https://community.mybb.com/forum-153.html)
+------ Thread: htaccess --> what should go in it? and where? (/thread-123391.html)



htaccess --> what should go in it? and where? - FooFighter - 2012-07-28

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


RE: htaccess --> what should go in it? and where? - illusionalp - 2012-07-28

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..


RE: htaccess --> what should go in it? and where? - crazy4cs - 2012-07-28

.htaccess (without any extension).


RE: htaccess --> what should go in it? and where? - bowkilled - 2012-08-01

(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.