Welcome Guest, Not a member yet? Register   Sign In
404 page not found entries in the error log file
#1

On every page load, I get these two entries in my error log file.

Code:
ERROR - 2016-04-22 15:26:44 --> 404 Page Not Found: Assets/js
ERROR - 2016-04-22 15:26:45 --> 404 Page Not Found: Assets/js

I have absolute no idea what is causing these errors as both assets & js are valid folders. Is there any way I can get more info on which specific call is causing this 404 error or page referer etc info will be useful to resolve it.
Reply
#2

(04-22-2016, 06:29 AM)happyape Wrote: On every page load, I get these two entries in my error log file.

Code:
ERROR - 2016-04-22 15:26:44 --> 404 Page Not Found: Assets/js
ERROR - 2016-04-22 15:26:45 --> 404 Page Not Found: Assets/js

I have absolute no idea what is causing these errors as both assets & js are valid folders. Is there any way I can get more info on which specific call is causing this 404 error or page referer etc info will be useful to resolve it.

You using a htaccess file. This file redirect all calls to the index.php except files.
Check you views and search assets/js.
Reply
#3

(This post was last modified: 04-22-2016, 02:37 PM by happyape.)

Yes you maybe right I guess. But I do have more sub folders in assets e.g. assets/css, assets/bootstrap etc which are being included in the header but I never get any error log entries for them?

I have the following code in my htaccess. Do you know how to allow assets folder and its all sub-folders? I will test. Thank you.

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]
    
    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>
Reply
#4

(This post was last modified: 04-22-2016, 03:09 PM by happyape.)

Never mind. I fixed the issue by adding this line -

Code:
RewriteCond $1 !^(index\.php|assets|myadmin|robots\.txt)
Reply
#5

For some strange reasons, I am still getting the 404 errors e.g.

Code:
ERROR - 2016-04-30 16:41:15 --> 404 Page Not Found: Assets/js
ERROR - 2016-04-30 16:41:15 --> 404 Page Not Found: Assets/js

My .htaccess file is -

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ index.php?/$1 [L]

    RewriteCond %{REQUEST_URI} ^application.*
    RewriteRule ^(.*)$ index.php?/$1 [L]

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]


    RewriteCond $1 !^(index\.php|assets|myadmin|robots\.txt)
    RewriteRule ^(.*)$ index.php?/$1 [L]

</IfModule>
<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>
Reply




Theme © iAndrew 2016 - Forum software by © MyBB