Przeglądaj źródła

Fixes RewriteRule conflicts in htaccess see #4077

Julio Montoya 13 lat temu
rodzic
commit
8d96092064
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      htaccess

+ 4 - 1
htaccess

@@ -9,9 +9,12 @@
 
 
 RewriteEngine on 
+RewriteCond %{QUERY_STRING} ^id=(.*)$
+RewriteRule ^certificates/$ certificates/index.php?id=%1 [L]
 RewriteRule ^([^/.]+)/?$ user.php?$1 [L]
 
 
 
-# This will transform 
+# This will transform
+# http://my.chamilo.net/certificates/?id=123     to  http://my.chamilo.net/certificates/index.php?id=123 
 # http://my.chamilo.net/juliomontoya		to		 http://my.chamilo.net/user.php?juliomontoya