diff --git a/www-apps/cgit/files/postinstall-en.txt b/www-apps/cgit/files/postinstall-en.txt index b164123f0196c..f7c5c8cfae909 100644 --- a/www-apps/cgit/files/postinstall-en.txt +++ b/www-apps/cgit/files/postinstall-en.txt @@ -29,9 +29,9 @@ rewrite rules to your RewriteEngine On # Redirect all non-existant urls to cgit - RewriteCond %{REQUEST_FILENAME} !-f - RewriteCond %{REQUEST_FILENAME} !-d - RewriteRule ^.* /cgi-bin/cgit.cgi/$0 [L,PT] + RewriteCond %%{REQUEST_FILENAME} !-f + RewriteCond %%{REQUEST_FILENAME} !-d + RewriteRule ^.* /cgi-bin/cgit.cgi/\$0 [L,PT] # Redirect the empty url to cgit RewriteRule ^$ /cgi-bin/cgit.cgi/ [L,PT]