Re: mod_rewrite loop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 On 24/09/2010 9:59 AM, Walther Bauer wrote:
This .htaccess snippet creates an "Request exceeded the limit of 10 internal
redirects"-error on my server (XAMPP):

RewriteEngine On
RewriteRule ^(.*)$ ./server.php

while the following does not:

RewriteEngine On
RewriteRule ^(.*)$ server.php

So why does the "./" actually make a difference?
Thanks in advance.


Walther,

(.*) matches server.php. You either need to use a regexp that doesn't match the target, or use a RewriteCond on REQUEST_URI to achieve the same effect.

Frank

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux