Reply to php script does not always execute or too slowly 301 redirect

Your name:

Reply:


Posted by mark Bannister on 01/23/08 16:41

Hello,
PHP vesion 4.4.1
On our corporate web site we use a common script that is called via an
include at the start of every page.
We just made a major site change and have a long list of 301 redirects.
I decided to handle the 301's in the common script instead of htaccess.

Now in the logs we are getting a lot of 404 not found errors on pages
that should be redirecting. Most of these are from robots, but not all.
I was wondering if this was just a timeout issue. I am logging all
errors and do not see any occurring.

The sequence of events is:
request for a not found page handled by htaccess and passed to a
notfound.php page.
The first thing notfound.php does is include the common script. This
script checks an array for a redirected uri. If it matches it sends a
301 header with the new page and exits.

What is happening that on some occasions the client is getting a 404
and we are not showing any errors occurring in PHP?




--
Mark B

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация