Welcome Guest, Not a member yet? Register   Sign In
htaccess problem, rewrite to stats folder
#1

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

I've get a problem, cannot find a solution since I am not very good with htaccess and regular expressions. I have a stats folder on www.mysite.com/awstats/ and the problem is that codeigniter "think" it is a controller. So here is my .htaccess actually:

Code:
<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]

    RewriteRule ^awstats$ /awstats/  [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)
    RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>

Any help please?


Messages In This Thread
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 10:51 AM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 12:50 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 03:33 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 03:50 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 04:08 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 04:42 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 05:24 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 05:35 PM
htaccess problem, rewrite to stats folder - by El Forum - 10-15-2007, 06:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB