I am trying to redirect old URLS to the new URLS, the old site used variables in the URL but the new site uses SEO friendly URLs.
When I try to redirect the old URL, it is not redirecting correctly and I get 404 errors. I am unsure if the SEO rewrite is the cause of the other rewrite condition failing.
Options +FollowSymlinks RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L] RewriteRule ^(.+).html index.php?seo_title=$1 [nc]
Redirect 301 /WEBPAGE http://www.example.com/WEBPAGE.html
RewriteRule ^http://www.example.co.uk/test/test.php?c=viewtest&id=56&sat=9&mainsat=1&start=0$ http://www.example.com/NEW_URL.html
ErrorDocument 404 /PAGE_NOT_FOUND.html
Question: How can I write the RewriteRule so that it redirects the old URL?