1

I'm experiencing a problem where I'm receiving a 404 error when accessing a blog post via social media on (and ONLY on) a mobile device - regular computers work perfectly.

Any ideas?

live site here

ETA: error log doesn't seem to specifically mention anything to do with mobile viewing.

AMC
  • 1,603
  • 11
  • 43
  • 74
  • First stop: I'd look at the error logs on the server, to see if they give you any more details. Q: Exactly what file/directory is the 404 complaining about? – paulsm4 Nov 05 '13 at 06:05
  • Here are some additional hints: http://stackoverflow.com/questions/8126205/404-error-on-mobile-device-but-works-on-pc-browser. ALSO: does it happen with *any* mobile device ... or just a specific handset or handsets? – paulsm4 Nov 05 '13 at 06:16
  • @paulsm4 I'll take a look at the link, thank you for sending it. The problem happens with all mobile devices. – AMC Nov 06 '13 at 19:31
  • 1
    Link to social media post? Let's start from the beginning shall we.. – Chris Bell Nov 10 '13 at 18:53
  • @ChrisBell [Here](https://www.facebook.com/golddiggerlasvegas/posts/668893613144460) is a recent post that leads to 404 when viewing on a mobile device. – AMC Nov 11 '13 at 20:14
  • Does `/blog/` even exist? If I go to the site and then to the blog, it's sending me to `/#2963`, while the facebook post tries to send me to `/blog/` – SQB Nov 15 '13 at 12:26
  • 1
    That seems to be the problem. If I go to http://mobile.golddiggerinc.com/blog/, I get a 404, while http://www.golddiggerinc.com/blog/ _does_ exist. If I access the mobile site and _then_ go to the blog, I'm sent directly to the most recent blog post at http://mobile.golddiggerinc.com/#2963. – SQB Nov 15 '13 at 12:34
  • @SQB Blog exists, I've created the page in Wordpress. Where else can I look for a cause/solution to the problem you mentioned? – AMC Nov 15 '13 at 17:17
  • facebook uses the link: http://m.facebook.com/l.php?u=http%3A%2F%2Fgolddiggerinc.com%2Fblog%2F&h=aAQFJ6cSI&s=1 this gets forwarded to http://mobile.golddiggerinc.com/blog/ this url does not work even on a desktop. – JDwyer Nov 15 '13 at 18:32

3 Answers3

1

For every request which is being made from a mobile device, the server is redirecting the client to a mobile url.

In this particular case(url http://golddiggerinc.com/blog/ in facebook post), the server is redirecting the client to the page http://mobile.golddiggerinc.com/blog, which is not available on the server.

The blog section on the mobile page gets the user to http://mobile.golddiggerinc.com/#2963.

The ideal redirection for the blogs section should be http://mobile.golddiggerinc.com/#2963.

So, the server on identifying a mobile user agent and the url http://golddiggerinc.com/blog/ should redirect the client to http://mobile.golddiggerinc.com/#2963. This can be done on the server.

But the easiest fix would be to remove the /blog path in the url on the facebook post and asking the user to navigate to blogs section. ;-)

Sakthi
  • 83
  • 1
  • 5
0

I just successfully navigated to http://golddiggerinc.com from my S4 Android phone. The URL changed to: http://mobile.golddiggerinc.com/#2770.

My guess is that the web server redirected to mobile.golddiggerinc.com and that url was not working when you saw this error. Either DNS, or some other reason. I'd venture that when http://golddiggerinc.com worked on your computer but not from mobile device, that http://mobile.golddiggerinc.com would not have worked from your computer at that exact time.

But now mobile.golddiggerinc.com is working so the problem is gone.

Jason LeMonier
  • 195
  • 1
  • 7
  • Problem is not gone. The problem happens only when accessing the blog from Facebook via a post link. Try visiting [this link](https://www.facebook.com/golddiggerlasvegas/posts/668893613144460) on your Android to see the 404. – AMC Nov 15 '13 at 19:46
  • I am able to navigate even from your fb link successfully using my mobile android . Is your problem solved? Or u still need an answer?? – srikanth Nov 16 '13 at 00:10
0

This is because mobile.golddiggerinc.com/blog is not a valid url. Change the url to http://mobile.golddiggerinc.com/#2770 if that can be handled by you. Should work.

Habrashat
  • 687
  • 6
  • 12