lucy24 - 11:46 am on Sep 27, 2013 (gmt 0)
The .htaccess file is inside the /forums folder. Should it be in that subfolder or directly within the root directory?
You can have more than one htaccess for minor things. But having RewriteRules in more than one place is a recipe for disaster. Put everything in the root.
In mod_rewrite within htaccess
the opening anchor ^ in the pattern refers to the directory you are currently in. But a leading / in the target always means the root, no matter where you are.
A RewriteBase is only used when the target doesn't have a leading slash and doesn't start with full protocol-plus domain. In other words, never. So you don't need the line at all.
I just want to redirect anything with "support" in it to go to "forums"
In your examples, you've got potential subdirectories within /support/. How many different directories are there? I assume they're locations that used to exist, so there can't be a vast number of them. In fact there can't be all that many filenames, total.
and at worst
If you use ?: for non-capturing groups, you don't have to keep track of the parentheses.
:: hasty detour to switch off smileys after seeing what happens to the sequence (?:(?:o ::