Title: robscott's Replies | WordPress.org

---

# robscott

  [  ](https://wordpress.org/support/users/robscott/)

 *   [Profile](https://wordpress.org/support/users/robscott/)
 *   [Topics Started](https://wordpress.org/support/users/robscott/topics/)
 *   [Replies Created](https://wordpress.org/support/users/robscott/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/robscott/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/robscott/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/robscott/engagements/)
 *   [Favorites](https://wordpress.org/support/users/robscott/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 139 total)

1 [2](https://wordpress.org/support/users/robscott/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/robscott/replies/page/3/?output_format=md)…
[8](https://wordpress.org/support/users/robscott/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/robscott/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/robscott/replies/page/10/?output_format=md)
[→](https://wordpress.org/support/users/robscott/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce] Missing field hasMerchantReturnPolicy](https://wordpress.org/support/topic/missing-field-hasmerchantreturnpolicy/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [3 years ago](https://wordpress.org/support/topic/missing-field-hasmerchantreturnpolicy/#post-16721870)
 * Hi,
 * I am sure there will be lots of “I have this problem too” messages, as Google
   Search Console has begun displaying this warning in their console.
 * First, a couple of points:
    1. This is a warning in GSC, not an error. Warnings are meant to be pointers, but
       you should not suffer any ill-effects from a momentary absence of this piece
       of data;
    2. With that being said, Google is handing you a heavy hint here that a) you should
       have a clear and obvious returns policy and b) assuming you do, you should mark
       this up with Schema.org structured data.
 * This isn’t particularly a WooCommerce problem – it is a merchant specific problem.
 * However, in WooCommerce, the system offers a great opportunity to append your
   own schema.org structured data, as do a number of third party plugins (mostly
   SEO plugins).
 * If you’d like to use a code snippet for adding this one piece of data to some
   all products, that’s possible too.
 * The first thing to check and resolve is that you actually have a Returns policy,
   because without one, you won’t be able to add this data!
 * NOTE this is different to Merchant Center returns policy, as this warning specifically
   relates to the structured data shown in “Offers” schema in your website, not 
   the data which displays under Merchant Center / Google Shopping results.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [No WP login behind a Reverse Proxy. Just redirect loop.](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/#post-14547111)
 * > I’ve set everything for https-only.
 * This wasn’t my point – my point was about how you’re proxy-ing; and this is port
   specific.
 * I don’t fully understand your use-case, nor your expectation re documentation
   for what looks like an edge case setup. Can you describe why you expect this 
   setup to be documented? What’s the benefit of the split between admin and front-
   end?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [No WP login behind a Reverse Proxy. Just redirect loop.](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/#post-14521274)
 * Sorry for delay – I had a week out of office.
 * I wonder if you’re looping http <> https from backend to frontend.
 * Alternatively your issue might be how the location /wp-admin/ is handled (i.e.
   where wp-login.php attempts to redirect you to).
 * If you attempt to load /wp-admin/ after logging in – does it work?
    What if you
   add /wp-admin/index.php ?
 * Is there any reason you dislike Nginx Unit for this?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [No WP login behind a Reverse Proxy. Just redirect loop.](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/#post-14487054)
 * I think maybe your proxy pass should be at `location /wp-admin/` within your **
   _frontend _**directives. But I’d like to see all of nginx.conf to be sure.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [No WP login behind a Reverse Proxy. Just redirect loop.](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/#post-14486999)
 * Sorry — I can see that defined in your config at the top there now.
 * Try adding the following to your nginx.conf server directive – you’d need this
   in the frontend part:
 * `server_name_in_redirect off;`
 * This may be sufficient.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [No WP login behind a Reverse Proxy. Just redirect loop.](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/no-wp-login-behind-a-reverse-proxy-just-redirect-loop/#post-14486969)
 * Hi Bill,
 * I feel like you’re not defining the admin location in wp-config.php… which sounds
   sort of obvious from your description of it not getting there 🙂
 * Trying to think where in the chain this might be.
 * I *do* use Nginx Unit to pass based on uri match (for ‘/wp-admin/’ ) and this
   might be all you need to define (perhaps try doing so as location in nginx.conf)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Why are my AMP pages 14 times slower than my desktop?](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/page/2/#post-14441500)
 * [@considerthis1](https://wordpress.org/support/users/considerthis1/) – yes it
   is the AMP page – if you click the waterfall tab in GTmetrix, for the AMP page,
   you’ll see that it is calling “cdn.ampproject.org” early in the load.
 * In here -> [https://gtmetrix.com/compare/oT4gzbtm/mhBgjo0h](https://gtmetrix.com/compare/oT4gzbtm/mhBgjo0h)
   > Waterfall
 * That’s a simplified version, but its a quick and easy way to confirm you’re looking
   at an AMP!
 * Another way is to view source and you’ll see you’re looking at an AMP by the 
   amp-html stuff at the top:
 * view-source:[https://health-boundaries.com/vitamin-b12-and-fingernails/?amp](https://health-boundaries.com/vitamin-b12-and-fingernails/?amp)
 * Why you’re not getting the lightning bolt is perhaps a different question. It
   is worth checking Google Search Console for any AMP specific errors (and warnings).
 * You can run it through Google’s online AMP test, too:
 * [https://search.google.com/test/amp?url=https%3A%2F%2Fhealth-boundaries.com%2Fvitamin-b12-and-fingernails%2F%3Famp](https://search.google.com/test/amp?url=https%3A%2F%2Fhealth-boundaries.com%2Fvitamin-b12-and-fingernails%2F%3Famp)
 * This is looking valid now! It may be worth considering switching AMP to “Transitional”
   or “Standard” mode in your AMP settings, which make serving the AMP version the
   default – BUT this is something of a decision point your side, and probably only
   do that if you’re happy with how AMP content is looking and working.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Why are my AMP pages 14 times slower than my desktop?](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/#post-14440103)
 * Hi,
 * It looks to me like WP Supercacher is caching your AMP content. I lighthouse 
   tested and your AMP content loads okay. It is a little slower in mobile than 
   in desktop (this is expected – because Lighthouse simulates a slower connection–
   it is not actually slower). Note this is loading the exact same page – the AMP
   page.
 * Loading the non AMP page does yield faster performance in desktop.
 * It’s never been 14s+ on any of these tests – so it looks to me like you’ve got
   caching working.
 * The performance of AMP and non AMP are roughly equal, e.g.:
 * [https://gtmetrix.com/compare/oT4gzbtm/mhBgjo0h](https://gtmetrix.com/compare/oT4gzbtm/mhBgjo0h)
 * This is looking ok to me right now. To gain more speed, you’d need to get granular–
   and into quite advanced topics!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Why are my AMP pages 14 times slower than my desktop?](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [4 years, 12 months ago](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/#post-14440064)
 * Hi [@considerthis1](https://wordpress.org/support/users/considerthis1/) – you
   might be able to configure WP Supercache to make sure it caches the AMP pages.
   The server response time suggests it is not – but it is for desktop. This explains
   the difference in response time between the two.
 * There may be other ways around this too – including:
 * * Hosting migration (so the uncached load is faster – but still you’d want to
   fix the page caching)
    * Make sure WP Supercache is caching ?amp content correctly–
   or look at another full page caching plugin (like WP Rocket) which may be easier
   to configure * “Proxy Cache” at DNS level, via a (free) service like CloudFlare–
   which would also need configuring to make sure it also caches ?amp content.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Why are my AMP pages 14 times slower than my desktop?](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [5 years ago](https://wordpress.org/support/topic/why-are-my-amp-pages-14-times-slower-than-my-desktop/#post-14430926)
 * Hi [@considerthis1](https://wordpress.org/support/users/considerthis1/) – just
   stopping by as I’ve seen and resolved similar issues before.
 * One thing I’d like to explain is about PageSpeed Insights. When Google PSI measures
   mobile performance, they simulate a slower connection, using “throttling” – what
   this means is, under Lab (not real world performance) the mobile site on a responsive
   site is almost always slower than the desktop version.
 * Not 14x slower, but usually a little slower.
 * In your case, your AMP page has an “initial server response time” of 7+ seconds.
   This means your web server is taking over 7 seconds to begin sending the AMP 
   page at all.
 * I can think of a potential reason why, too – it’s likely your hosting is caching
   your desktop version (because it does not have the query string – the ?amp part)
   and not caching the AMP version.
 * So:
 * 1) Your server is caching desktop – but not caching a page with a query string.
   To test, performance scan the following URL: [https://health-boundaries.com/?cachebustingrandomstring](https://health-boundaries.com/?cachebustingrandomstring)
   and see how it performs in mobile and desktop
 * 2) Assuming caching is hiding slow server performance, maybe migrating to a new
   host will help.
 * In my personal experience, this AMP plugin has helped my and many client sites
   to load extremely quickly, so it is not likely to be down to the plugin itself–
   although there’s clearly something amiss in your setup somewhere.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [does ANYBODY have a WORKING wordpress behind Nginx reverse proxy config?](https://wordpress.org/support/topic/does-anybody-have-a-working-wordpress-behind-nginx-reverse-proxy-config/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [5 years ago](https://wordpress.org/support/topic/does-anybody-have-a-working-wordpress-behind-nginx-reverse-proxy-config/#post-14409145)
 * Okay – but above I’d seen you describe that you didn’t have Nginx proxy working
   with WordPress.
 * From having WordPress running via proxy, it’s less of a leap to configure accessing
   this in the manner described.
 * The script I pointed out handles all of that initial configuration – I use a 
   similar script to this to achieve a similar thing to your initial description.
   But I wanted to see if you had a working Nginx proxy, as this would then be a
   smaller task.
 * Q: “does ANYBODY have a WORKING wordpress behind Nginx reverse proxy config?”
   
   A: “yes”
 * Q: “Is it possible to THEN configure more complex location rules?”
    A: “also 
   yes”
 * I don’t fully understand the difference between “external” and “internal” in 
   your description – but it sounded like you’d fallen at the first hurdle in any
   case.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [does ANYBODY have a WORKING wordpress behind Nginx reverse proxy config?](https://wordpress.org/support/topic/does-anybody-have-a-working-wordpress-behind-nginx-reverse-proxy-config/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [5 years ago](https://wordpress.org/support/topic/does-anybody-have-a-working-wordpress-behind-nginx-reverse-proxy-config/#post-14396259)
 * @huna02 Nginx itself has a script to install a hello world WordPress behind a
   reverse proxy.
 * Spinup a server in your favourite cloud VPS and give this a spin
 * [https://www.nginx.com/blog/automating-installation-wordpress-with-nginx-unit-on-ubuntu/](https://www.nginx.com/blog/automating-installation-wordpress-with-nginx-unit-on-ubuntu/)
 * Edit the above to match your preferred setup.
 * Answer: yes, lots of people have WordPress running in the way you have described.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Classic Editor] Scroll doesn’t work in Firefox](https://wordpress.org/support/topic/scroll-doesnt-work-in-firefox/)
 *  [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/scroll-doesnt-work-in-firefox/page/3/#post-14034837)
 * Adding here for more recent comments: this issue is in WordPress version 5.6 
   and will be fixed in version 5.7 which patches in the necessary place.
 * Please note, there’s a patch mentioned in here, but you need to be running a 
   pre-release version of WordPress to access it. Do so at your own risk, or wait
   for the release.
 * Props to those who patched so quickly 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mailgun for WordPress] PHP Deprecated: Invalid characters passed for attempted conversion](https://wordpress.org/support/topic/php-deprecated-invalid-characters-passed-for-attempted-conversion/)
 *  Thread Starter [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-invalid-characters-passed-for-attempted-conversion/#post-14016117)
 * 1.7.1 in mine. Yeah code editor adding double lines is highly possible 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Mailgun for WordPress] PHP Deprecated: Invalid characters passed for attempted conversion](https://wordpress.org/support/topic/php-deprecated-invalid-characters-passed-for-attempted-conversion/)
 *  Thread Starter [robscott](https://wordpress.org/support/users/robscott/)
 * (@robscott)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/php-deprecated-invalid-characters-passed-for-attempted-conversion/#post-14014593)
 * [@alexclst](https://wordpress.org/support/users/alexclst/) mine still is line
   368. You may be on an older or edited version of the Mailgun plugin?
 * This function pops up in a few SMTP plugins too – in a couple I’ve found how 
   they’ve fixed this warning; in my case, we have replaced with custom code because
   we don’t need all the features of Mailgun’s plugin.
    -  This reply was modified 5 years, 3 months ago by [robscott](https://wordpress.org/support/users/robscott/).

Viewing 15 replies - 1 through 15 (of 139 total)

1 [2](https://wordpress.org/support/users/robscott/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/robscott/replies/page/3/?output_format=md)…
[8](https://wordpress.org/support/users/robscott/replies/page/8/?output_format=md)
[9](https://wordpress.org/support/users/robscott/replies/page/9/?output_format=md)
[10](https://wordpress.org/support/users/robscott/replies/page/10/?output_format=md)
[→](https://wordpress.org/support/users/robscott/replies/page/2/?output_format=md)