Mysterious 404 Server errors on localhost
-
Hello all!
I am looking for an error message since one week now ??
The error I get:
Source map error: request failed with status 404 Resource URL: https://localhost/~username/test_wordpress/wp-content/themes/wpbootstrap/js/bootstrap.js Source Map URL: bootstrap.js.map
What I tried:
1. look through the file encoding (UTF-8 without BOM, Unix Linefeeds)
2. looking through all files and folders of extended file attributes (MacOS) and removed one or two with the shell (with commandxattr ...
)
3. replaced the path with full or relative path like follows:<link href="<?php bloginfo('template_url'); ?>/css/bootstrap.css" rel="stylesheet"> <link href="css/bootstrap.css" rel="stylesheet"> <link href="/Users/username/Sites/wpb_tutorial/wp-content/themes/wpbootstrap/bootstrap.css" rel="stylesheet"> <link href="~/Sites/wpb_tutorial/wp-content/themes/wpbootstrap/bootstrap.css" rel="stylesheet">
with these replacements the nav bar is appearing, but ugly formatted, which was before beautiful. Only the first link leads to the source map error.
4. Went to Dashboard and saved the Settings > Permalinks
5. looked through my httpd.conf setting of my apache-server (but vaguely).
6. looked for hidden files, specially .httaccess
7. I changed the permissions of bootstrap.css and enclosing folder to 777
8. Changed the owner to root …I don’t know what to do, how to continue …
Thank you for your help
marek
Ps: just now writing this post, I discovered in the Dashboard Settings > Permalink an remark about .htaccess if this would be writable … So I added an
.htaccess
file in the root folder with the content:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /~mstep/wpb_tutorial/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /~mstep/wpb_tutorial/index.php [L] </IfModule>
No help …
- The topic ‘Mysterious 404 Server errors on localhost’ is closed to new replies.