I'm closing one of my phpBB3 forums and intend to remove the pages + database from the server and archive them. However, it's well indexed and is constantly visited by search bots. I want to remove the forum but I don't want a long list of 404's in my logs and - ideally - I'd like to do something positive with the traffic. Ideally I'll redirect all the requests to a landing page containing an explanation of why the forums are closed and suggest other links.
Of course, putting 301 Redirects onto static pages is easy (I have lots of these, too), but with dynamically-generated forum content it's not as simple.
I've tried adding this to my htaccess file but to no avail - it still ends up at the 404 page:
Code: Select all
RewriteCond %{REQUEST_URI} ^/forums(.*)
RewriteRule ^(.*)$ http://www.mydomainname.ext/forums-closed/? [R=301,L]
The "forums" directory is where phpBB is installed and I'm applying a suggestion from a unix user who suggests the wildcard to catch all requests below the forums folder level. "forums-closed" is the Wordpress landing page to which requests should be redirected.
Any ideas? The problem I have is that the 404s are accounting for a large proportion of the stats and it doesn't make sense to leave as it is. I need to exploit the incoming requests properly.
Advice gratefully received!
Colin