301 redirects on CSS and JS send requests to /?ver= rather than loading proper resource

[ad_1]

I have this issue where the below redirect keeps happening.

All js and css keeps keetting redirected to /?{version number} via 301.
Web server has no redirect directives, have cleared caches god knows how many times and ofc private/different browsers.

This is a wordpress site nested inside another wordpress site (I know…) and is routed via an nginx conf similar to below:

location ^~ /nestedsiteuri {
root /var/www/html/nested-site-root;
index index.php index.html;
try_files $uri $uri/ /nested-site-root/index.php$is_args$args;
}

I can confirm that this is capturing the request because it’s still loading /nestedsiteuir/?ver=### but not where the 301 is coming from or why it’s going there.

Any ideas would be greatly appreciated!

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer