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

[eluser]Référencement Google[/eluser]
Finally got it while trying and trying:

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On

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

</IfModule>

It is actually working like I want, but if you see something wrong in it, please say!

Thanks for the help Codecrafter


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