Results 1 to 3 of 3
Nov 22, 2011, 11:24 #1
Forums Closed Want to 301 Redirect everything to a closed message
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
Nov 23, 2011, 02:20 #2
- Join Date
- Mar 2006
- 7 Post(s)
- 1 Thread(s)
Something like this perhaps?
RewriteEngine On RewriteRule ^forums/(.*) http://somedomain.com/closed.php [R=301,L]
Nov 23, 2011, 16:52 #3
- Join Date
- Aug 2008
- The Netherlands
- 120 Post(s)
- 2 Thread(s)
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)The 2013 SitePoint Awards - Nominate your heroes now!
Rémon - Hosting Advisor
Minimal Bookmarks Tree
My Google Chrome extension: browsing bookmarks made easy