[Bug 63376] New: .htaccess rewriterule is going in a infinity loop when [p]

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 63376] New: .htaccess rewriterule is going in a infinity loop when [p]

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63376

            Bug ID: 63376
           Summary: .htaccess rewriterule is going in a infinity loop when
                    [p]
           Product: Apache httpd-2
           Version: 2.4.34
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: mod_proxy
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

in a domain, I have a .htaccess that is configured like this :

RewriteEngine on
RewriteRule ^admin$ /admin/ [R,L]

RewriteRule (.*)
<a href="http://www.example.com/sf2/sub/%">http://www.example.com/sf2/sub/%{REQUEST_URI}?%{QUERY_STRING}&id=7 [P]

in the old server, this is working very well, but in the new server, the rule
is going in a loop and it's impossible to come in the website.

When I open the page, I have this error :

Forbidden
You don't have permission to access
/sf2/sub/sf2/sub/sf2/sub/......./sf2/sub/sub.php

As you can see, the rule is calling infinity time !!! and I want only one time.

I know that this is nothing to do with .htaccess because this is working well
in other server that call the same file.

this is only not working when the both domains are in the same server. When the
domain is external of example.com, this is working well

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 63376] .htaccess rewriterule is going in a infinity loop when [p]

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=63376

chatis <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|Mac OS X 10.1               |Linux

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]