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

Lukas Fleischer archlinux at cryptocrack.de
Fri Dec 7 18:03:27 EST 2012


On Fri, Dec 07, 2012 at 10:54:48PM +0100, Marcel Korpel wrote:
> ---
>  INSTALL | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/INSTALL b/INSTALL
> index d682eda..190bc0d 100644
> --- a/INSTALL
> +++ b/INSTALL
> @@ -89,4 +89,10 @@ Setup on Arch Linux:
>     $ cd ~/aur/web/lib/
>     $ cp config.inc.php.proto config.inc.php
> 
> +   In case you set $USE_VIRTUAL_URLS to true (default nowadays) you should add
> +   a rewrite rule. For Apache, add this ~/aur/web/html/.htaccess:
> +
> +   RewriteEngine on
> +   RewriteRule ^(?!index\.php/.*)(.*)$ /index.php/$1

Can't we use something like "RewriteRule ^(.*)$ /index.php/$1 [L]" here?
Under lighttpd, following config works:

    url.rewrite-once = (
        "^(.*)$" => "/index.php/$1"
    )

On alderaan, following nginx rule is used:

    location ~ .* {
        rewrite ^/(.*)$ /index.php/$1 last;
    }

> +
>  8) Point your browser to http://aur
> -- 
> 1.8.0.1


More information about the aur-dev mailing list