• 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_folder

    I 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.css

    When 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.css

    If 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.css

    I 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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter general_salt

    (@general_salt)

    I guess I should tell you what are in my two .htaccess files!

    sitting my .httpdocs folder is my blog folder with my WP install, and this .htaccess: (I’m changing my site URL changed to ‘mysite’)

    RewriteEngine On
    Options +FollowSymlinks
    RewriteBase /
    
    RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.com
    RewriteCond %{REQUEST_URI} !mysite/
    RewriteRule ^(.*)$ mysite/$1 [L]

    I am not good at this htaccess stuff, I admit it. This is suppose take users to the folder with my blog in called mysite. Should my blog be in its own folder in the in httpdocs folder? Or should WP not be in it’s own folder, and just sitting inside httpdocs?

    …and in the mysite folder I have the .htaccess:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    HELP!!

    Thread Starter general_salt

    (@general_salt)

    I took WP out from httpdocs->myblog->all WP files here to httpdocs->all WP files and it works. Weird. Dont get it, but at least it works.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS files only pulling with a www.’ is closed to new replies.