homepage Welcome to WebmasterWorld Guest from 54.196.196.108
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
normcdn




msg:4432115
 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:
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

 

incrediBILL




msg:4432126
 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.

g1smd




msg:4432300
 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.

normcdn




msg:4432625
 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