Options -MultiViews
DirectoryIndex index.php

RewriteEngine On
RewriteBase /peli/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^buscar/([^/]+)/?$ index.php?query=$1 [L,QSA,NC]