htaccess 550 B

1234567891011121314151617181920
  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/?id=123 to http://my.chamilo.net/certificates/index.php?id=123
  13. # http://my.chamilo.net/juliomontoya to http://my.chamilo.net/user.php?juliomontoya