I would like to redirect all:
<a href="filename"></a>
to
<a href="get.php?filename"></a>
I have started to
RewriteRule !\.(html|php)$ /get.php?file=$1 [PT]
But it does not work.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve tested this regexp in PHP
it should work in mod_rewrite but I have not tested itand seems to work in mod_rewrite too:The rule will rewrite all URLs except those that end with .php or .html.