Ok, so the .htaccess file in C:\wamp\www seems to be the cause. It basically 
says "for any request, prepend the directory "webroot". So when you request 
/bookstore, it prepends "webroot" and rewrites that to "/webroot/bookstore". To 
which it then prepends "webroot" and rewrites it to 
"/webroot/webroot/bookstore". And so on forever (or until Apache errors out due 
to internal redirect limit).

Why is this .htaccess file here? What is its intended purpose? Clearly you 
don't want the above behavior, so what behavior do you actually want?


On Apr 18, 2011, at 09:03, varai wrote:

> contents of HTACCESS file in c:\wamp\www
> <IfModule mod_rewrite.c>
>    RewriteEngine on
>    RewriteRule    ^$    webroot/    [L]
>    RewriteRule    (.*) webroot/$1    [L]
> </IfModule>

> contents of httpd.conf

> DocumentRoot "c:/wamp/www/"

> When i type http://localhost/bookstore in the browser address bar, I
> get the internal server error.
> 
> Apache error log (after setting LogLevel to debug):
> Mon Apr 18 21:22:09 2011] [error] [client 127.0.0.1] Request exceeded
> the limit of 10 internal redirects due to probable configuration
> error. Use 'LimitInternalRecursion' to increase the limit if
> necessary. Use 'LogLevel debug' to get a backtrace.
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3046): [client 127.0.0.1] r-
>> uri = /webroot/webroot/webroot/webroot/webroot/webroot/webroot/
> webroot/webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/webroot/webroot/
> webroot/webroot/webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/webroot/webroot/
> webroot/webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/webroot/webroot/
> webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/webroot/webroot/
> webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/webroot/webroot/
> bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /webroot/bookstore/
> [Mon Apr 18 21:22:09 2011] [debug] core.c(3052): [client 127.0.0.1]
> redirected from r->uri = /bookstore/


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to