Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

implicitly forcing redirect? [L] flag in mod_rewrite not working

Status
Not open for further replies.

carpeliam

Programmer
Mar 17, 2000
990
US
I have the following few lines of code in my httpd.conf file for mod_rewrite:

Code:
RewriteEngine On
RewriteLog "C:/Apache/httpd/logs/rewrite.log"
RewriteLogLevel 3
RewriteRule ^/(.*)$ [URL unfurl="true"]http://localhost/cocoon/$1[/URL] [L]

However, something strange is happening.. it's actually going into an infinite loop, even though I have the [L|last] flag turned on. Here are the results from my rewrite.log file:

Code:
init rewrite engine with requested uri /
applying pattern '^/(.*)$' to uri '/'
rewrite / -> [URL unfurl="true"]http://localhost/cocoon/[/URL]
implicitly forcing redirect (rc=302) with [URL unfurl="true"]http://localhost/cocoon/[/URL]
escaping [URL unfurl="true"]http://localhost/cocoon/[/URL] for redirect
redirect to [URL unfurl="true"]http://localhost/cocoon/[/URL] [REDIRECT/302]
init rewrite engine with requested uri /cocoon/
applying pattern '^/(.*)$' to uri '/cocoon/'
rewrite /cocoon/ -> [URL unfurl="true"]http://localhost/cocoon/cocoon/[/URL]

as you can see, it's getting a redirect header, but I have no idea why. Could anybody please shed some light on this issue? I'd be seriously grateful.. Liam Morley
lmorley@gdc.wpi.edu
"light the deep, and bring silence to the world.
light the world, and bring depth to the silence."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top