Properly setting up a “default” nginx server for https

I managed to configure a shared dedicated hosting on a single IP with nginx. Default HTTP and HTTPS serving a 404 for unknown domains incoming. 1 – Create a default zone As nginx is loading vhosts in ascii order, you should create a 00-default file/symbolic link into your /etc/nginx/sites-enabled. 2 – Fill the default zone … Read more

How to register and set http/2 server prefetch for a specific asset?

Support for resource hints in WordPress is done through rel attribute of <link> elements whithin the HTML docuemnt, not with HTTP/2 server push (which uses Link headers in the HTTP response). You can use wp_resource_hints filter to add the URLs you need the prefetch like this: add_filter( ‘wp_resource_hints’, ‘cyb_resource_hints’, 10, 2 ); function cyb_resource_hints( $urls, … Read more

Category links break the https

With the new or not so new move to the https side of thing, there are rising numbers of questions about the mixed content warning for https. First check the sites URLS: Settings > Permalinks and save. This will refresh the urls. Also change WordPress Address (URL) and Site Address (URL) so it includes the … Read more

Gravatar image url is wrong?

As the filename suggests, it’s a default for when someone does not have a gravatar assigned. It is set up in your child theme and looks to be improperly set. You should search through the child theme files to find ‘wpb-default-gravatar.png’ and from there figure out what is adding the extra domain. If this is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)