[aur-dev] [PATCH] Added RewriteRule for Apache

Marcel Korpel marcel.lists at gmail.com
Sun Dec 9 13:58:26 EST 2012


On Sat, Dec 8, 2012 at 12:03 AM, Lukas Fleischer
<archlinux at cryptocrack.de> wrote:
> On Fri, Dec 07, 2012 at 10:54:48PM +0100, Marcel Korpel wrote:
>> +   RewriteRule ^(?!index\.php/.*)(.*)$ /index.php/$1
>
> Can't we use something like "RewriteRule ^(.*)$ /index.php/$1 [L]" here?

I tried that first, but it creates a loop somewhere. When I try a
redirect and access http://aur I'm redirected to
http://aur/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/index.php/

To prevent this looping, we need the (?!index\.php/.*) part.

Regards, Marcel


More information about the aur-dev mailing list