I've got a WordPress install that utilizes a reasonably vanilla .htaccess file. You will find some files inside a directory around the server that customers should have the ability to access using a link submitted an e-mail. That link consists of URL variables, together with a second URL. Something similar to:

www.mysite.com/email/email.php?src=http://source.com&title=sample

My mod_rewrite rules should allow use of it, but as lengthy because the link consists of '//' the consumer sees a 404 page around the WordPress site, instead of being able to access the intended email.php file.

Here's the .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

#uploaded files
RewriteRule ^(.*/)?files/$ index.php [L]
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
#RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 [L]
RewriteRule ^(.*/)?files/(.*) wp-includes/ms-files.php?file=$2 [L]

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ [R=301,L]

RewriteCond %{REQUEST_URI} ^/email$
RewriteRule . - [L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>

<IfModule mod_security.c>
<Files async-upload.php>
SecFilterEngine Off
SecFilterScanPOST Off
</Files>
</IfModule>

Any applying for grants what I have done wrong?