Hello!
On my web server, running Apache, I want to include a RewriteRule statement in the .htaccess file, that allows to forward the user to a "mailto" link.
What I have so far is the follwoing:
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(en|de)/sendmail/(.*)$ mailto:$2@example.com [R=301,L]
That works pretty fine; when the user navigates to example.com/de/sendmail/foobar the email client opens with "foobar@example.com" as the recipient's email.
The only thing is, that the browser window now states "Permanently moved", which is not what should appear.
Is there any chance, to open the email client
and to navigate to e.g. example.com/contact?
Thanks in advance.
What I have tried:
As already stated in the question, I tried using the RewriteRule and RewriteCond settings, shown above.