CSS files only pulling with a www.
-
This might actually be a hosting/server issue, not sure. I moved wordpress from a shared host to a new server (virtual host). In the new host I have to put everything in the httpdocs folder. I have it in the order:
root/httpdocs/my_blog_folderI created a new database, imported the old one from the old site, and everything updated well. I uploaded the my old wp-content folder, and the new site is using to correct theme, so that is working too. I personally suspect the .htaccess file is the culprit and am investigating as such.
Only thing is I noticed the CSS files were not being applied in the browser. Looking at the code I noticed my CSS urls were:
http://mysite.com/wp-content/themes/my_theme/css/colors.cssWhen I typed this in browsers I got a 404 page. That seems correct to me! But I guess not.
In my FTP application (Transmit) the paths to my CSS are showing:
http://mysite.com/httpdocs/mysite/wp-content/themes/mytheme/css/colors.cssIf I type this in I get Google Oooops Link Broken! 🙁
But! If I add a http://www..
www.mysite.com/httpdocs/mysite/wp-content/themes/mytheme/css/colors.cssI can see this CSS file!
Between switching hosts and wrapping my head around the virtual private server, I am not understanding why this is, and how to fix it. Sorry if this is long winded explanation, I am just trying to understand the situation myself!
All the CSS files getting pulled like this:
<?php bloginfo('url'); ?>/css/main_menu.css
The topic ‘CSS files only pulling with a www.’ is closed to new replies.