Google PageSpeed Insights Avoid Landing Page Redirects

Google PageSpeed Insights Avoid Landing Page Redirects

You don’t see this very often. When you visit the home page it automatically redirects the user to one of the country specific URLs. Since I have a UK IP, I was redirected to the /uk/ home page.

It looks like the website is set when accessing the index file (/, index.php) it 301 redirects to
https://ww5.languagenut.com/redirect

And that 302 redirects based on IP, in my case to:

http://www.languagenut.com/uk/

Can confirm this with header checks.

HTTP/HTTPS Header Check on http://www.languagenut.com/
HTTP/1.1 301 Moved Permanently =>
Date => Mon, 12 Sep 2016 10:36:28 GMT
Server => Apache/2.4.7 (Ubuntu)
Location => https://ww5.languagenut.com/redirect
Content-Length => 328
Connection => close
Content-Type => text/html; charset=iso-8859-1

And

HTTP/HTTPS Header Check on https://ww5.languagenut.com/redirect
HTTP/1.1 302 Found =>
Date => Mon, 12 Sep 2016 10:37:04 GMT
Server => Apache/2.4.7 (Ubuntu)
X-Powered-By => PHP/5.5.9-1ubuntu4.9
Set-Cookie => redirect_locale=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0
Expires => Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control => no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma => no-cache
Location => http://www.languagenut.com/us/
Access-Control-Allow-Origin => *
Access-Control-Allow-Credentials => true
Content-Length => 0
Connection => close
Content-Type => text/html

Note the HTTP/HTTPS Header Check website I used (search Google for “Header Check” for loads of free ones) must be located in the US, they have a US IP so the header check 302 redirected to the /us/ webpage.

It should be possible to skip the ‘middleman’ (the /redirect page) and have a single redirect from the /index.php page.

The current setup means effectively there isn’t a home page at / (it 301 redirects out). A better setup would be to have say the /uk/ webpage at / and 302 redirect to the country specific sections.

Continue Reading Languagenut