Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 01-04-2012, 01:38 PM
Bob Barr's Avatar
Moderator
Latest Blog:
None

 
Join Date: 05-17-08
Location: Morgan Hill, California
Posts: 2,307
iTrader: 0 / 0%
AWStats reporting files not found

On a couple of my sites, I'm getting "File not found" reports on files that shouldn't be getting referenced. All of my css files are in subdirectory "css" and all of the href's for them are coded as:

Code:
href="css/client_name.css"
AWStats is reporting that a file named "css/css/client_name.css" couldn't be found. I've checked every HTML file on the site for that string and it's just not there. (I only reference the css file from HTML pages in the site's root directory.)

Another site shows that problem plus some of the ".js" files that I store in subdirectory "js" are appearing as not found for "js/js/name.js".
<added>
Again, a search of the HTML files shows no occurrences of "js/js".
</added>

Thoughts and possibilities?

While I'm considering adding new "css/css" and "js/js" subdirectories to suppress these errors, I'd much rather find and fix the cause rather than "getting around it".
__________________
South SF Bay Area Carpet Cleaning Cleanway USA Inc. Candy Buffets and Bouquets California Sisterz
 
Reply With Quote
  #2 (permalink)  
Old 01-04-2012, 06:31 PM
RiptideTempora's Avatar
Contributing Member
 
Join Date: 11-30-11
Location: Orlando, FL
Posts: 220
iTrader: 0 / 0%
Change css/ to /css/

Or if you're in http://domain.com/client/b/css/main.css, go with /client/b/css/main.css
__________________
This Link Will Self-Destruct
Keenotes - A place for sharp minds

Last edited by HTMLBasicTutor; 01-04-2012 at 08:20 PM.
 
Reply With Quote
  #3 (permalink)  
Old 01-04-2012, 07:05 PM
Bob Barr's Avatar
Moderator
Latest Blog:
None

 
Join Date: 05-17-08
Location: Morgan Hill, California
Posts: 2,307
iTrader: 0 / 0%
Quote:
Originally Posted by RiptideTempora View Post
Change css/ to /css/
Since the css folder is directly under the domain's root folder, is there really any difference between specifying "css/name.css" and "/css/name.css"? (If there is, I don't see why that would be the case.)

Quote:
Or if you're in http://domain.com/client/b/css/main.css, go with /client/b/css/main.css
All of the HTML files are located in the root directory. They all directly access the css files which are all located in its "css" subdirectory.
__________________
South SF Bay Area Carpet Cleaning Cleanway USA Inc. Candy Buffets and Bouquets California Sisterz

Last edited by HTMLBasicTutor; 01-04-2012 at 08:20 PM.
 
Reply With Quote
  #4 (permalink)  
Old 01-04-2012, 08:55 PM
RiptideTempora's Avatar
Contributing Member
 
Join Date: 11-30-11
Location: Orlando, FL
Posts: 220
iTrader: 0 / 0%
It shouldn't matter, but for the sake of consistency add the / to the front and the errors should go away.

Some peoples' browsers do strange things.
__________________
This Link Will Self-Destruct
Keenotes - A place for sharp minds
 
Reply With Quote
  #5 (permalink)  
Old 01-05-2012, 08:22 PM
Bob Barr's Avatar
Moderator
Latest Blog:
None

 
Join Date: 05-17-08
Location: Morgan Hill, California
Posts: 2,307
iTrader: 0 / 0%
Quote:
Originally Posted by RiptideTempora View Post
It shouldn't matter, but for the sake of consistency add the / to the front and the errors should go away.

Some peoples' browsers do strange things.
Starting the link with a slash doesn't work. I had forgotten that, since these are addon domains, the domain's directory is already one level below my account's root directory. Starting the link with a slash makes the accessing start from the account's directory and, of course, the link fails.

Without the slash, the css subdirectory should be getting accessed correctly one level down from the domain's directory. The problem is that *something* is pre-pending the css and js links with the directory name an extra time. I just haven't been able to find out what that something is.
__________________
South SF Bay Area Carpet Cleaning Cleanway USA Inc. Candy Buffets and Bouquets California Sisterz
 
Reply With Quote
  #6 (permalink)  
Old 01-06-2012, 01:11 AM
Super Moderator
Latest Blog:
None

 
Join Date: 11-11-11
Location: Copenhagen, Denmark
Posts: 1,857
iTrader: 0 / 0%
Well it could be a bad web crawler or proxy server, not understanding relative path correctly(it happens).

It could also be a javascript trying to read another javascript or stylesheet(eg. writing out a script- or style-tag).

.htaccess could probably also create this problem, if you have rewritten some urls.

Just something to think about.

Anyway, maybe i could help more if you posted an url for one of the websites having this problem.
__________________
Need a break? EnterCave more than 40000 online games in 15 categories.
Search or browse through EnterCave Online Games Directory
 
Reply With Quote
  #7 (permalink)  
Old 01-06-2012, 01:49 AM
HTMLBasicTutor's Avatar
Super Moderator
 
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 18,271
iTrader: 5 / 100%
How many of these errors do you have Bob?

I get people "fishing" quite often to see if I am running .... (pick something). Their attempts show up as 404 errors.

Another thought is someone trying to ripoff the site and their ripoff software isn't too smart therefore causing errors.

Sometimes they (whoever they are) also send false referrals to get you to look at their site.
__________________

HTML Basic Tutor - Learn how to code for better SEO
Basic Computer Information - Computer & internet basics for website owners

SEO troubleshooting and review services available. - Pm me.
 
Reply With Quote
  #8 (permalink)  
Old 01-06-2012, 06:37 AM
RiptideTempora's Avatar
Contributing Member
 
Join Date: 11-30-11
Location: Orlando, FL
Posts: 220
iTrader: 0 / 0%
Quote:
Originally Posted by Bob Barr View Post
Starting the link with a slash doesn't work. I had forgotten that, since these are addon domains, the domain's directory is already one level below my account's root directory. Starting the link with a slash makes the accessing start from the account's directory and, of course, the link fails.
It shouldn't.

/css should point to domain.com/css

As in, the root folder for that addon domain.
__________________
This Link Will Self-Destruct
Keenotes - A place for sharp minds
 
Reply With Quote
  #9 (permalink)  
Old 01-06-2012, 09:07 AM
ScriptMan's Avatar
Super Moderator
 
Join Date: 02-10-07
Location: Central Kentucky
Posts: 10,263
iTrader: 4 / 100%
HTML already posted my thoughts but adding a little to that; does AW show the requesting url? I know the other stats program does that. If these are direct requests I would ignore them as a fishing expedition.

If they are called by one of your pages than the funky browser or busy server might be the reason. I occasionally see pages loads where the CSS is not found and 10 seconds later the page loads fine. You ought to see what this VB page looks like when the CSS is not found.
__________________
SEO does not mean Spam Everywhere Online
Scriptman's Playhouse || Ramblings from an old man
2013 resolution: Don't feed trolls
ScriptMan
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[HELP] Install AWstats TechUpdates Web Hosting Forum 2 11-26-2011 01:35 PM
Found a Great Site to Create KML Files to Boost Your Local Listings Rankings Top_of_the_Burg SEO Forum 0 10-26-2011 05:38 AM
My blog content found in RSS feed directory And found in copyscap.com surat SEO Forum 2 08-03-2009 12:09 AM
404 Not Found - Funny Page Not Found Error Message- Must See blackhat Forum Lobby 15 01-26-2009 12:35 PM
AWStats on Win 2K3/IIS 6 Sean@WMS Web Hosting Forum 0 05-29-2008 09:33 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:24 PM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.