Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a website hosted on a dedicated server, I noticed that Google and other search engines can't access to the most URLs on my website!!

On my localhost I have made a small test :

var_dump(fopen('http://www.aswat.ma', 'r'));

And I got this error :

Warning: fopen(http://www.aswat.ma) [function.fopen]: failed to open stream: HTTP request failed! HTTP/1.1 500 Internal Server Error in C:\xampp\htdocs\pnowate\public\index.php on line 4 bool(false)

If I change the URL "http://www.aswat.ma" by "www.google.co.ma" I got this :

resource(3) of type (stream)

Any one have any idea about this issue ??

share|improve this question

To check this kind of issue, you can use a website like www.hurl.it. Anyway I see you used Zend Framework to develop the website and I think you have the almost same problem I had (or at least you can solve the same way). Thus, take a look at my question and my answer. It works for me: Redirect error in Google Webmaster Tools report

share|improve this answer
Thank you for your reply. Using your tool such as hurl.it I have found the error :) this error apears just when access to my website without a browser! Cause I'm trying to get Language from BROWSER like this : $locale->setLocale(Zend_Locale::BROWSER); Regards. – user11604 Nov 23 '11 at 13:00
@AhmedB Glad to help you. Don't forget to accept the answer. meta.stackexchange.com/questions/5234/… – Aurelio De Rosa Nov 23 '11 at 13:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.