Browse code

Now the .htaccess file automatically converts http to https.

Apollia authored on06/15/2018 06:09:43
Showing1 changed files
... ...
@@ -4,6 +4,9 @@
4 4
     RewriteEngine On
5 5
     #RewriteBase /path/to/gitlist/
6 6
 
7
+RewriteCond %{HTTPS} !=on
8
+RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
9
+
7 10
     RewriteCond %{REQUEST_FILENAME} !-f
8 11
     RewriteCond %{REQUEST_FILENAME} !-d
9 12
     RewriteRule ^(.*)$ index.php [L,NC]
Browse code

Fixed .htaccess to work on my web host.

With the original .htaccess, clicking repo links led to a nearly
blank page that said "No input file specified."

Apollia authored on06/11/2018 21:56:02
Showing1 changed files
... ...
@@ -6,7 +6,7 @@
6 6
 
7 7
     RewriteCond %{REQUEST_FILENAME} !-f
8 8
     RewriteCond %{REQUEST_FILENAME} !-d
9
-    RewriteRule ^(.*)$ index.php/$1 [L,NC]
9
+    RewriteRule ^(.*)$ index.php [L,NC]
10 10
 </IfModule>
11 11
 <Files config.ini>
12 12
     order allow,deny
Browse code

Update .htaccess

index.php is pretty url.

akira kashima authored on07/07/2017 01:45:14
Showing1 changed files
... ...
@@ -5,6 +5,7 @@
5 5
     #RewriteBase /path/to/gitlist/
6 6
 
7 7
     RewriteCond %{REQUEST_FILENAME} !-f
8
+    RewriteCond %{REQUEST_FILENAME} !-d
8 9
     RewriteRule ^(.*)$ index.php/$1 [L,NC]
9 10
 </IfModule>
10 11
 <Files config.ini>
Browse code

Fixing Apache 2.4 incompatibility

Klaus Silveira authored on05/17/2014 12:12:06
Showing1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 <IfModule mod_rewrite.c>
2
-    Options -MultiViews SymLinksIfOwnerMatch
2
+    Options -MultiViews +SymLinksIfOwnerMatch
3 3
 
4 4
     RewriteEngine On
5 5
     #RewriteBase /path/to/gitlist/
Browse code

Merge pull request #337 from paulollivier/master

Fix for 404 error when comming from project list

Klaus Silveira authored on03/29/2014 00:59:05
Showing0 changed files
Browse code

Adding SymLinksIfOwnerMatch to ensure RewriteEngine can be used; adapted the README

Lionello Lunesu authored on07/11/2013 07:45:12
Showing1 changed files
... ...
@@ -1,5 +1,5 @@
1 1
 <IfModule mod_rewrite.c>
2
-    Options -MultiViews
2
+    Options -MultiViews SymLinksIfOwnerMatch
3 3
 
4 4
     RewriteEngine On
5 5
     #RewriteBase /path/to/gitlist/
Browse code

Fix for 404 error on project pages when comming from the project list

Paul Ollivier authored on06/25/2013 08:55:49
Showing1 changed files
... ...
@@ -5,7 +5,7 @@
5 5
     #RewriteBase /path/to/gitlist/
6 6
 
7 7
     RewriteCond %{REQUEST_FILENAME} !-f
8
-    RewriteRule ^(.*)$ index.php [L,NC]
8
+    RewriteRule ^(.*)$ index.php/$1 [L,NC]
9 9
 </IfModule>
10 10
 <Files config.ini>
11 11
     order allow,deny
Browse code

fix #214 - rewrite rule in .htaccess points to root of document directory

Marcos Coelho authored on12/20/2012 01:38:27
Showing1 changed files
... ...
@@ -2,8 +2,10 @@
2 2
     Options -MultiViews
3 3
 
4 4
     RewriteEngine On
5
+    #RewriteBase /path/to/gitlist/
6
+
5 7
     RewriteCond %{REQUEST_FILENAME} !-f
6
-    RewriteRule ^(.*)$ /index.php [L,NC]
8
+    RewriteRule ^(.*)$ index.php [L,NC]
7 9
 </IfModule>
8 10
 <Files config.ini>
9 11
     order allow,deny
Browse code

Fixed RewirteRule

Norbert Orzechowicz authored on10/12/2012 08:16:07
Showing1 changed files
... ...
@@ -3,7 +3,7 @@
3 3
 
4 4
     RewriteEngine On
5 5
     RewriteCond %{REQUEST_FILENAME} !-f
6
-    RewriteRule ^ index.php [L]
6
+    RewriteRule ^(.*)$ /index.php [L,NC]
7 7
 </IfModule>
8 8
 <Files config.ini>
9 9
     order allow,deny
Browse code

Deny access to config.ini file using .htaccess.

Kulbir Saini authored on05/24/2012 16:10:04
Showing1 changed files
... ...
@@ -4,4 +4,8 @@
4 4
     RewriteEngine On
5 5
     RewriteCond %{REQUEST_FILENAME} !-f
6 6
     RewriteRule ^ index.php [L]
7
-</IfModule>
8 7
\ No newline at end of file
8
+</IfModule>
9
+<Files config.ini>
10
+    order allow,deny
11
+    deny from all
12
+</Files>
Browse code

Initial commit

Klaus Silveira authored on05/18/2012 04:38:33
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,7 @@
1
+<IfModule mod_rewrite.c>
2
+    Options -MultiViews
3
+
4
+    RewriteEngine On
5
+    RewriteCond %{REQUEST_FILENAME} !-f
6
+    RewriteRule ^ index.php [L]
7
+</IfModule>
0 8
\ No newline at end of file