Forums closed due to spam and i want to redirect all the posts in from the forum to a closed message in the root.
and all content from http://somedomain.com/forums/
should go to
I can do the folder just having issues with the content of the folder
Something like this perhaps?
RewriteRule ^forums/(.*) http://somedomain.com/closed.php [R=301,L]
Might need to be tweaked a little, I’m not too good with the rewrites
Since you’re not at all interested in what’s in the URL after /forums and the fact that the URL starts with “/forums” is indication enough to fire the rule, there is no need to tell the regex parser to go and match the rest of the URL (i.e., the /(.*) part), that’s just doing work for nothing.
You can use what Immerse posted, but leave out
(it will work with that code btw)