404 pages are bad. Why?

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

404 pages are bad. Why?

Postby vsabah » Wed Jan 25, 2012 8:01 pm

Hi,

Some links are bad. What can i do? Everything is OK but deleted topics (404 pages) are bad.

Link;

http://www.freeonesforum.com/dasdada.html
http://www.freeonesforum.com/dasddawreq2evqeqdada.html



Thanks...
User avatar
vsabah
PR0
PR0
 
Posts: 60
Joined: Sun Jul 06, 2008 1:09 pm

Advertisement

Re: 404 pages are bad. Why?

Postby HB » Wed Jan 25, 2012 8:36 pm

Well, if you clicked on a link, would you rather be directed to the article's new location or be served a "not found" message? If the article is truly gone, then it's better to redirect to your site's home page (e.g., if someone linked your site but later you removed the article). FWIW, Google ignores 404 for a long, long time; 301 redirects take effect almost immediately.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1517
Joined: Mon Oct 16, 2006 2:25 am

Re: 404 pages are bad. Why?

Postby vsabah » Wed Jan 25, 2012 8:46 pm

HB wrote:Well, if you clicked on a link, would you rather be directed to the article's new location or be served a "not found" message? If the article is truly gone, then it's better to redirect to your site's home page (e.g., if someone linked your site but later you removed the article). FWIW, Google ignores 404 for a long, long time; 301 redirects take effect almost immediately.


Thanks but why i am taking error codes?
Warning: strtr() [function.strtr]: The second argument is not an array in ***/includes/session.php on line 2205

Warning: Cannot modify header information - headers already sent by (output started at ***/includes/session.php:2205) in ***/includes/functions.php on line 4764

Warning: Cannot modify header information - headers already sent by (output started at ***/includes/session.php:2205) in / ***/includes/functions.php on line 4766

Warning: Cannot modify header information - headers already sent by (output started at ***/includes/session.php:2205) in ***/includes/functions.php on line 4767

Warning: Cannot modify header information - headers already sent by (output started at ***/includes/session.php:2205) in ***/includes/functions.php on line 4768

Fatal error: template->_tpl_load_file(): File /message_body.html does not exist or is empty in ***//includes/functions_template.php on line 63
User avatar
vsabah
PR0
PR0
 
Posts: 60
Joined: Sun Jul 06, 2008 1:09 pm

Re: 404 pages are bad. Why?

Postby HB » Thu Jan 26, 2012 7:31 pm

Probably because you have a typo around line 2205 in session.php. Basically the error is telling you that your php file has generated some output and later tried to generate headers. Since phpBB uses templates, the page output isn't created until the very end, the error "headers already sent" should never occur.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1517
Joined: Mon Oct 16, 2006 2:25 am

Re: 404 pages are bad. Why?

Postby vsabah » Thu Jan 26, 2012 8:19 pm

HB wrote:Probably because you have a typo around line 2205 in session.php. Basically the error is telling you that your php file has generated some output and later tried to generate headers. Since phpBB uses templates, the page output isn't created until the very end, the error "headers already sent" should never occur.


OK! What can i do?
User avatar
vsabah
PR0
PR0
 
Posts: 60
Joined: Sun Jul 06, 2008 1:09 pm

Re: 404 pages are bad. Why?

Postby HB » Fri Jan 27, 2012 3:44 pm

I assume you have a coding error around line 2205: "Warning: strtr() [function.strtr]: The second argument is not an array in ***/includes/session.php on line 2205". If you can't figure it out, post the 10 lines before and after.
Dan Kehn
HB
phpBB SEO Team
phpBB SEO Team
 
Posts: 1517
Joined: Mon Oct 16, 2006 2:25 am


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 9 guests