#           /**
#          * @Author Ghost
#          * @Copyright 2013
#          * @Version 4.0
#          * @Description Open Forums And Multi-Room Chat Script
#          * @FileSource Flat File (.txt)
#          * @Setup Functions, Sessions, Encrypted Passwords
#          * @HTMLVersion Xhtml 1.0 Transitional EN
#          * @CssVersion Css3  
#          **/
#
#         This .htaccess file adds seo friendly options. combined with my own php setup
#         to also convert the "forums" links to look seo friendly check conf.php to turn that on or off.
#         ---- Make Sure you upload it or you wont get these benefits ----
#

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Files .htaccess>
order allow,deny
deny from all
</files>

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>

<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

# Do not remove these lines, otherwise mod_rewrite rules will stop working correctly
Options +FollowSymLinks
RewriteEngine On
# RewriteBase Rule /forum/ = Forum Folder (Change This If Placed In Different Directory)
RewriteBase /forum/

RewriteRule ^reply/(.*)/page/(.*)/thread/(.*)/$ reply.php?forum=$1&page=$2&thread=$3 [L]
RewriteRule ^reply/(.*)/page/(.*)/thread/(.*)$ reply.php?forum=$1&page=$2&thread=$3 [L]
RewriteRule ^edit/(.*)/page/(.*)/thread/(.*)/$ edit.php?forum=$1&page=$2&thread=$3 [L]
RewriteRule ^edit/(.*)/page/(.*)/thread/(.*)$ edit.php?forum=$1&page=$2&thread=$3 [L]
RewriteRule ^create/([a-zA-Z0-9\-]+)/page/(.*)/$ create.php?forum=$1&page=$2 [L]
RewriteRule ^create/([a-zA-Z0-9\-]+)/page/(.*)$ create.php?forum=$1&page=$2 [L]
RewriteRule ^(.*)/page/(.*)/thread/(.*)/$ thread.php?forum=$1&page=$2&thread=$3 [L]
RewriteRule ^(.*)/page/(.*)/thread/(.*)$ thread.php?forum=$1&page=$2&thread=$3 [L]
RewriteRule ^(.*)/thread/(.*)/$ thread.php?forum=$1&thread=$2 [L]
RewriteRule ^(.*)/thread/(.*)$ thread.php?forum=$1&thread=$2 [L]
RewriteRule ^([a-zA-Z0-9\-]+)/page/(.*)/$ list.php?forum=$1&page=$2 [L]
RewriteRule ^([a-zA-Z0-9\-]+)/page/(.*)$ list.php?forum=$1&page=$2 [L]
RewriteRule ^([a-zA-Z0-9\-]+)/$ list.php?forum=$1 [L]
RewriteRule ^([a-zA-Z0-9\-]+)$ list.php?forum=$1 [L]
