Well for anyone interested, i found the solution.
You have to add the line:
Code:
RewriteBase /aliasname
to the .htaccess file.
Where "aliasname" is the name you gave to the Apache alias, like if you have this:
Code:
Alias /cartazleiria/ "d:/workspace/cartazleiria/public/"
<Directory "d:/workspace/cartazleiria/public/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
Allow from all
</Directory>
the .htaccess file will be:
Code:
RewriteEngine on
RewriteBase /cartazleiria
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php