Random 404 errors for files included in (using multisite)
-
I’ve had problems with including files on my themes header.php. While including additional files (CSS or JS).
For starters:
- Filepaths are correct eg. I can succesfully point to them directly
- Everything works fine on localhost
- I’m using WordPress Multisite with subdomains
The beef:
- Some files give 404 page in <head>
- Some don’t 🙂
Now I would like to have some fundamental discussion around this subject.
Why do 404 pages get served on linked files?
How to narrow the problem to either server or WP installation/configuration?
Example:
<?php wp_head(); ?> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/css/jquery-ui.css" type="text/css" />The first link works the latter gives 404? Why on earth?
The topic ‘Random 404 errors for files included in (using multisite)’ is closed to new replies.