Welcome to WebmasterWorld Guest from 54.167.83.224

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

.htaccess for phpbb deleted forum

     
3:16 pm on Mar 22, 2012 (gmt 0)

New User

joined:Jan 30, 2012
posts: 9
votes: 0


Hi everybody,
Sorry to ask this question, but I am stock and it is quite frustrating for a so simple problem.
I always monitor carefully my error 404 in Google WMT.
I have a phpbb forum with many sub-forums. Some have been deleted, and it generates error 404 like in the following example:
viewtopic.php?f=53&t=8091&p=185507

the forum f=53 no longer exist. Is there a simply way, in the .htaccess, to redirect url containing f=53 to the main page and stop generating error 404.
I tried the (.*) in many scenarios and it did not work.
Thanks for your time.
Normand
3:38 pm on Mar 22, 2012 (gmt 0)

Administrator from US 

WebmasterWorld Administrator incredibill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Jan 25, 2005
posts:14624
votes: 88


Try doing a condition based on the QUERY_STRING containing "f=53" would be a start.
10:07 pm on Mar 22, 2012 (gmt 0)

Senior Member

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:July 3, 2002
posts:18903
votes: 0


If the page doesn't exist you should return "410 Gone" status, not a redirect.

It's bad form to mass redirect broken URLs to the home page. Your site may well be flagged for having "soft 404" errors if you do.
4:13 pm on Mar 23, 2012 (gmt 0)

New User

joined:Jan 30, 2012
posts: 9
votes: 0


Thanks for the info. I am still trying to figure out a way of this problem.
I was aware about the soft 404 . Thanks