Hello all,

I have made a .htaccess file that servers as a template for future websites.
Still I'm having problems with some points.
1. I would like to have trailing slashes in my urls so I need to link "domain/link" to "domain/link/" and this also applies to the "domain/link/link/" form
2. I to disable index.php direct access. So "domain/index.php" or "domain/index.php?request=about" shouldn't be allowed but "domain/about/" should.

Here's my .htaccess file.

Code:
Options -Indexes
ServerSignature Off

<files .htaccess>
deny from all
</files>

<ifModule mod_php5.c>
php_value zlib.output_compression 16386
</ifModule>

<IfModule mod_deflate.c>
<FilesMatch "\.(css|html|js|php|txt|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
RewriteRule .*  [F,L]

# With the www. prefix
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]

# Without the www. prefix
#RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?request=$1 [L,QSA]
Also, if you have any suggestions for the existing code, please respond!

Thank you in advance,
xtaste