I can't figure out what's going on here... I am using WAMP = Windows Apache MySQL PHP packaged. I have 2 sites running locally, literally copies of each other from the start with modification. However on one /forum/ will go to load my /forum/index.php and on the other it will just go to the main index.php as directed from the other redirect rules. This .htaccess rewrites all my URLs to point to my site's configuration.
Something's going on here, other than the .htaccess I'm not sure where to look.
RewriteEngine on
RewriteCond %{REQUEST_URI} ^[^.]+$
RewriteRule ^(.+[^/])$ /$1/ [R=301,L]
#Don't break valid URL's!
RewriteRule ^forum/(.+)$ forum/$1 [L]
RewriteRule ^image/(.+)$ image/$1 [L]
RewriteRule ^feed/(.+)$ feed/$1 [L]
RewriteRule ^sitemap/(.+)$ sitemap/$1 [L]
RewriteRule ^cron/(.+)$ cron/$1 [L]
RewriteRule ^lib/(.+)$ lib/$1 [L] [NS]
RewriteRule ^index.php$ index.php?%{QUERY_STRING} [L] [NS]
#But fix the ones that need fixing
RewriteRule ^([^/]+?)/([^/]+?)/([^/]+?)/([^/]+?)/([^/]+?)/([^/]+?)/?$ /index.php?cmd=$1&sec=$2&subsec=$3&tiersec=$4&quadsec=$5&act=$6&%{QUERY_STRING} [L,NS]
RewriteRule ^([^/]+?)/([^/]+?)/([^/]+?)/([^/]+?)/([^/]+?)/?$ /index.php?cmd=$1&sec=$2&subsec=$3&tiersec=$4&act=$5&%{QUERY_STRING} [L,NS]
RewriteRule ^([^/]+?)/([^/]+?)/([^/]+?)/([^/]+?)/?$ /index.php?cmd=$1&sec=$2&subsec=$3&act=$4&%{QUERY_STRING} [L,NS]
RewriteRule ^([^/]+?)/([^/]+?)/([^/]+?)/?$ /index.php?cmd=$1&sec=$2&act=$3&%{QUERY_STRING} [L,NS]
RewriteRule ^([^/]+?)/([^/]+?)/?$ /index.php?cmd=$1&act=$2&%{QUERY_STRING} [L,NS]
RewriteRule ^([^/]+?)/?$ /index.php?cmd=$1&%{QUERY_STRING} [L,NS]