I am trying to redirect (301) this URL: -

/Contents/Text/Index.asp?SiteId=476&SiteExtra=19749316&TopNavId=425&NavSideId=5383

It is not working...

This is the .htaccess file content: -

DirectoryIndex index.php

RewriteEngine on

#any URL request that doesn't have an extension will be redirected to index.php
RewriteRule !\.[a-z]{2,7}$ index.php

redirect 301 /Contents/Text/Index.asp?SiteId=476&SiteExtra=19749316&TopNavId=425&NavSideId=5383 http://olddomain/

Any help will be very gratefully received! Many thanks.