Pagespeed returns strange 301 redirect

74 views
Skip to first unread message

Alessandro Ursino

unread,
Dec 4, 2014, 3:36:22 AM12/4/14
to pagespeed-ins...@googlegroups.com
Hi

some google service like PageSpeed insights, Search (web cache from some point) and  Webmaster Tools (view site like Google) returns strange 301 redirect when try to access to our site
In the screenshot below on left the real site, on the right the site that google 'see' (a fake site)






I try to check some Global dns https://www.whatsmydns.net/#A/www.directio.it but there isn't nothing strange.
The binding between domain (www.directio.it) and ip (x.x.x.x) is ok.

How this could happening?

Rick Steinwand

unread,
Dec 4, 2014, 8:02:22 AM12/4/14
to pagespeed-ins...@googlegroups.com
Maybe you are redirecting to a mobile site?

Alessandro Ursino

unread,
Dec 4, 2014, 8:14:16 AM12/4/14
to pagespeed-ins...@googlegroups.com
Nope

none redirect to mobile website. 
Furthermore the site at which point the redirect is not an our site (but a fake louis vuitton site http://www.louisvuittonwww.info/ )

Rick Steinwand

unread,
Dec 4, 2014, 9:13:46 AM12/4/14
to pagespeed-ins...@googlegroups.com
In IE11, I get several script errors (checkForProductionEnv) and a 404 for your favicon.

Libo Song

unread,
Dec 4, 2014, 9:16:18 AM12/4/14
to pagespeed-ins...@googlegroups.com
It seems that your server checks the user-agent. It redirect to other site if the UA contains the word google.

$ curl 'http://directio.it/' -i -H 'User-Agent: Google'
HTTP/1.1 301 Moved Permanently
Date: Thu, 04 Dec 2014 14:13:59 GMT
Content-Length: 0

HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/html
Set-Cookie: ASP.NET_SessionId=nfovldicsw2z4da5tnaw1rgk; path=/; HttpOnly
Date: Thu, 04 Dec 2014 14:13:41 GMT

<!doctype html>
...

On Thu, Dec 4, 2014 at 9:13 AM, Rick Steinwand <rickst...@gmail.com> wrote:
In IE11, I get several script errors (checkForProductionEnv) and a 404 for your favicon.

--
You received this message because you are subscribed to the Google Groups "pagespeed-insights-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pagespeed-insights-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pagespeed-insights-discuss/10783911-42f4-4d31-ac71-870693f57aa6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Alessandro Ursino

unread,
Dec 5, 2014, 9:07:20 AM12/5/14
to pagespeed-ins...@googlegroups.com
now it should works. thanks

Alessandro Ursino

unread,
Dec 5, 2014, 9:08:14 AM12/5/14
to pagespeed-ins...@googlegroups.com
that was the real problem
thanks


Il giorno giovedì 4 dicembre 2014 15:16:18 UTC+1, Libo Song ha scritto:
It seems that your server checks the user-agent. It redirect to other site if the UA contains the word google.

$ curl 'http://directio.it/' -i -H 'User-Agent: Google'
HTTP/1.1 301 Moved Permanently
Date: Thu, 04 Dec 2014 14:13:59 GMT
Content-Length: 0

HTTP/1.1 200 OK
Cache-Control: private
Transfer-Encoding: chunked
Content-Type: text/html
Set-Cookie: ASP.NET_SessionId=nfovldicsw2z4da5tnaw1rgk; path=/; HttpOnly
Date: Thu, 04 Dec 2014 14:13:41 GMT

<!doctype html>
...
On Thu, Dec 4, 2014 at 9:13 AM, Rick Steinwand <rickst...@gmail.com> wrote:
In IE11, I get several script errors (checkForProductionEnv) and a 404 for your favicon.

--
You received this message because you are subscribed to the Google Groups "pagespeed-insights-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pagespeed-insights-discuss+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages