If project.link
is an already generated URL, then just do {{ project.link }}
.
{{ path() }}
is for generating a named route, for example in your routing.yml file.
As for the .htaccess file. Try changing it to:
<IfModule mod_rewrite.c>
RewriteEngine On
#<IfModule mod_vhost_alias.c>
# RewriteBase /
#</IfModule>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
<files php.ini>
order deny,allow
deny from all
</files>