301 htaccess redirect?

Could you help me to set-up correctly 301 redirect with .htaccess.

Redirect 301 /misc.php?page=free-webmaster-tools /webmaster-tools

Redirect 301 /misc.php?page=meta-tag-generator /webmaster-tools/meta-tag-generator

Redirect 301 /misc.php?page=word-counter /webmaster-tools/character-count

Redirect 301 /misc.php?page=whatismyip /webmaster-tools/what-is-my-ip

This doesn’t work.

I don’t believe that mod_alias can access the {QUERY_STRING} variable. To be sure, I’d fall back on “good ole” mod_rewrite:

[code]# .htaccess in DocumentRoot

RewriteEngine on
RewriteCond %{QUERY_STRING} page=free-webmaster-tools
RewriteRule ^misc.php$ webmaster-tools [L]

… for the other query strings[/code]

You might benefit from reading the mod_rewrite tutorial at http://dk.co.nz/seo as it contains explanations and sample code. It’s helped may members and should help you, too.

Regards,

DK

Thanks buddy very much at the end I end up using PHP header 301 redirect.
Thanks