Welcome Guest, Not a member yet? Register   Sign In
htaccess and 404 From hell!
#1

[eluser]LiorBroshi[/eluser]
This drives me crazy...i've been trying solve this for the past 2 days...
In my site, when i hit refresh on a specific page (article page) everything works fine.
-BUT-
When I try to access the -same- article from my internal search results, it produces the following debug notices on CI's log:
Code:
DEBUG - 2010-05-25 20:29:19 --> Config Class Initialized
DEBUG - 2010-05-25 20:29:19 --> Hooks Class Initialized
DEBUG - 2010-05-25 20:29:19 --> URI Class Initialized
ERROR - 2010-05-25 20:29:19 --&gt; 404 Page Not Found --&gt; 5223 <-- this is the ID of the article, uses show_article/5223
DEBUG - 2010-05-25 20:29:20 --&gt; Config Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Hooks Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; URI Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Router Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Output Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Input Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Global POST and COOKIE data sanitized
DEBUG - 2010-05-25 20:29:20 --&gt; Language Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Loader Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Config file loaded: config/bikur_config.php
DEBUG - 2010-05-25 20:29:20 --&gt; Config file loaded: config/database_tables_config.php
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: url_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: form_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: html_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: users_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: db_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: general_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Language file loaded: language/hebrew/bikur_sys_lang.php
DEBUG - 2010-05-25 20:29:20 --&gt; Session Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Helper loaded: string_helper
DEBUG - 2010-05-25 20:29:20 --&gt; Session routines successfully run
DEBUG - 2010-05-25 20:29:20 --&gt; Controller Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Model Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Database Driver Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Model Class Initialized
DEBUG - 2010-05-25 20:29:20 --&gt; Model Class Initialized
Where the hell did this 404 came from?
This happens only when I place my .htaccess file which contains:

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

    #Checks to see if the user is attempting to access a valid file,
    #such as an image or css document, if this isn't true it sends the
    #request to index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

Any ideas?
#2

[eluser]vitoco[/eluser]
this is the error
Code:
ERROR - 2010-05-25 20:29:19 --&gt; 404 Page Not Found --&gt; 5223 <-- this is the ID of the article, uses show_article/5223
so , from your internal results you get this url :
Code:
show_article/5223

show_article?? is the controller? so what's the function ?? or viceversa???

compare the 2 urls to see if they have the identical segments for the same "search"

Saludos




Theme © iAndrew 2016 - Forum software by © MyBB