Hello!
I have a little problem with mod_rewrite ... here is my .htaccess:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^xxx/xaage2.html$ index.php?q=sobrid_ak.html&page=2 [N,QSA]
RewriteRule ^([a-z0-9_\.]*)$ index.php?q=$1 [N,QSA]
#RewriteRule ^([A-Za-z0-9_\.]*)/iveikals/([A-Za-z0-9_]*)$ index.php?q=$1&object_id=$2 [L,QSA]
RewriteRule ^iveikals/precugrozs.html$ index.php?q=2&shoppingcart [N,QSA]
RewriteRule ^iveikals/shoppingcart.html$ index.php?q=2&shoppingcart [N,QSA]
RewriteRule ^iveikals/([a-z0-9_\.]*).html$ index.php?q=2&object_id=$1 [N,QSA]
RewriteRule ^iveikals/([a-z0-9_\.]*)/page([0-9]+).html$ index.php?q=2&object_id=$1&page=$2 [N,QSA]
RewriteRule ^iveikals/([a-z0-9_\.]*)/page([0-9]+)/filter([0-9]+).html$ index.php?q=2&object_id=$1&page=$2&src=$3 [N,QSA]
RewriteRule ^iveikals/([a-z0-9_\.\"\-]*)/([a-zA-Z0-9_\.\"\-]*).html$ index.php?q=2&object_id=$1&product_id=$2 [L,QSA]
#RewriteRule ^iveikals/([A-Za-z0-9_]+).html?$ index.php?id=2&object_id=$1 [L]
when I enable this one: RewriteRule ^xxx/xaage2.html$ index.php?q=sobrid_ak.html&page=2 [N,QSA] - it is 3rd line and goto http://mydomain.com/ - apache start eating ram ... then start eat swap and.. and then server became unavailable.... apache CPU usage 100% , mem usage about 100% too ..
I have tried to put in global httpd.conf:
LimitInternalRecursion 5 5
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule .* - [L]
RewriteOptions inherit
but this doesn't help. So as I understand there is endless loooooop? which kills server?
The question is.. how to prevent such server crashes?! Because I share server with other clients and when someone have such error in mod_rewrite rules... it will be problem for all clients. Is it possible to set some limits???
CentOS 5, Apache 2.2.3
Thanks! Waiting for help!