Forum Moderators: phranque
Apache mod_rewrite documentation [httpd.apache.org]
Apache URL Rewriting Guide [httpd.apache.org]
Regular Expressions Tutorial [etext.lib.virginia.edu]
Then you have to decide if you want to do an internal rewrite or an external redirect. In this case, you could do either an internal rewrite or a 302-Moved Temporarily external redirect. The difference is that an internal rewrite will simply substitute the contents of backsoon.html for any requested resource that matches your RewriteRule pattern, leaving the address in the browser address bar unchanged, whereas an external redirect will send a message back to the browser saying, "That resource has moved, ask for at this address: http:www.example.com/backsoon.html". The browser will then re-request the resource from that URL.
For an internal rewrite, I'd suggest:
Options +FollowSymLinks
RewriteEngine on
RewriteRule \.tpl$ /backsoon.html [L]
Options +FollowSymLinks
RewriteEngine on
RewriteRule \.tpl$ http://www.example.com/backsoon.html [R=302,L]
Alternatively, you could use:
RedirectMatch 302 \.tpl$ http://www.example.com/backsoon.html