htaccess 527 B

123456789101112131415161718
  1. # Check that your Apache virtualhost have this settings:
  2. #<Directory "/var/www/chamilo-classic">
  3. # AllowOverride All
  4. # Order allow,deny
  5. # Allow from all
  6. #</Directory>
  7. RewriteEngine on
  8. RewriteCond %{QUERY_STRING} ^id=(.*)$
  9. RewriteRule ^certificates/$ certificates/index.php?id=%1 [L]
  10. RewriteRule ^([^/.]+)/?$ user.php?$1 [L]
  11. # This will transform
  12. # http://my.chamilo.net/certificates/index.php?id=123 to http://my.chamilo.net/certificates/123
  13. # http://my.chamilo.net/user.php?jmontoya to http://my.chamilo.net/jmontoya