My site dns is setup correctly to point all non “www” to www. For example all urls should be www.mikecapson.com. However I am having issues as the Grav install seems to be forcing it without the www. Also I can reach internal images the way it is now however if I add in the www to the url I get a 404 for images. I’m not sure the area to check to resolve this issue. I have checked the htacces and didn’t notice anything unusual.
My install is installed in a vhost under var/vhost/mikecapson.com/installedhere
Do you have a public URL i can look at? And how exactly is your www. url being redirected to non-www. ? Is this an .htaccess thing? or purely a DNS thing?
Ok, so just for clarity. http://mikecapson.com does not redirect, to http://www.mikecapson.com, it just seems to be an alias to www. Grav get’s the hostname for URLs directly from PHP’s $_SERVER['SERVER_NAME'] variable, and that is usually the same as the URL in the browser.
Grav linking to the full URL is a little strange, and i"m trying to work out why that is doing that. Let’s use your navigation as an example. How exactly are you outputting your navigation menu? This theme is customized so I need to know how the page URLs are being generated. Then we can proceed with tracking it down why those are full and not relative…
OK we’ve fixed a couple of config caching bugs and pushed them to GitHub. However, i’m not convinced this is the cause of your issue. Could you first upgrade your Grav to 0.9.5 as your still on 0.9.4?
Easiest way is to do it via GPM from the command line (if possible):
bin/gpm selfupgrade
bin/gpm update
This will update Grav to latest version first, then the plugins and themes.