Welcome Guest, Not a member yet? Register   Sign In
Routing problem to an external application

[eluser]Référencement Google[/eluser]

I've got problems with an external Webstats tool (awstats) wich have a directory at the root of the webfolder.

I use this small script to handle the static pages of the website, and this is what's look to make my problem:

So, typing this:
www.mysite.com/awstats ===> CI error 404
www.mysite.com/validcontroller ===> OK
www.mysite.com/staticpage ===> OK

Any help would be appreciated to reach my stats folder because I am getting crazy for about a day with this problem.

use a .htaccess file in your root folder
RewriteEngine On
RewriteCond %{REQUEST_URI} !^(/index\.php|/img|/js|/css|/awstats|/robots\.txt|/favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]

so that the /awstats is not routed as a query for index.php

[eluser]Référencement Google[/eluser]
Already tryed it and this is the problem!
here is my htaccess actually:

<IfModule mod_rewrite.c>

    RewriteEngine On

    # If the file or directory exists, show it
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^(.+) - [PT,L]
    # Blank queries get sent to the index
    RewriteRule ^$ index.php [L]
    # All other queries get sent to the index as index.php/whatever
    RewriteRule ^(.*)$ index.php/$1 [L]
    RewriteCond $1 !^(index\.php|images|robots\.txt|js|css|user_guide|/awstats)    
    RewriteRule ^(.*)$ /index.php/$1 [L]


Theme © iAndrew 2016 - Forum software by © MyBB