MyBB Community Forums

Full Version: How to exclude /forums/ from htaccess rule?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
On my site, rsmaker.com I have a htaccess like this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^rsmaker\.com [NC]
RewriteRule ^(.*)$ http://www.rsmaker.com/$1 [R=301]

order deny,allow


<Files ~ "\.(php|php.*|sphp|php3|php4|php5|phtml|cgi|pl|shtml|dhtml|html|htm|lst)$">
deny from all
</files>

<files index.php>
allow from all
</files>

<files stats.php>
allow from all
</files>

<files privacy.php>
allow from all
</files>

<files disclaimer.php>
allow from all
</files>

<files tos.php>
allow from all
</files>

<files faq.php>
allow from all
</files>

<files advertise.php>
allow from all
</files>

<files yshout.php>
allow from all
</files>

<files example.html>
allow from all
</files>

<files bar.php>
allow from all
</files>

<files 404.shtml>
allow from all
</files>

<files 403.shtml>
allow from all
</files>

<files upload.php>
allow from all
</files>

<files cron.php>
allow from all
</files>

<files js.php>
allow from all
</files>

<files ~ "^\.">
deny from all
</files>

ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
ErrorDocument 503 /503.shtml
Options All -Indexes


I recently installed a forum on the site and now want to allow access to the forum but I don't know how to do it. So, everytime people want to do anything on the forum ( www.rsmaker.com/forums ), it will show no access.

So, how do I allow /forums/ access?
I could swear to god that Matt replied here just now. Where is it? lol..

Seriously, when you clicked the link, you will see the forum yes but try exploring it by clicking any links on it..you'll see what I meant.
Sorry, I replied then but saw the code box had a scroll bar and I'd missed a load of code, my post was useless so I deleted it Toungue
Create a folder /forums/

Create a .htaccess in /forums/ (even if it's empty)

The rules of the parent folder should not affect the sub folder then.

EDIT: That was actually referring to rewrite rules, missed your file allow deny stuff. Dunno if it will work for that.
Long words short, I decided to create a subdomain via whm and install the forum there. Saves a lot of headache and now the forum is working..Smile

Thanks all.