homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

.htaccess for phpbb deleted forum

 3:16 pm on Mar 22, 2012 (gmt 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:

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.



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

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)

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)

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

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved