Forum Moderators: phranque
www.example.com/1 here? RewriteRule ^([0-9]+)$ /index.php?page=$1 [L] www.example.com/1 style URLs from the pages of your site.
You need to rewrite your old requests to a script. That script will need to look up the new URL by retrieving a record in the database, and then sending the appropriate 301 redirect headers.
Check for "news.cfm" in the RewriteRule and "id=" in a RewriteCond examining %{QUERY_STRING}, and if they match, internally rewrite the request to your script's filepath. You can either back-reference these matched URL-path-parts and pass them to your script as name-value pairs appended to its filepath, or you can just invoke the script let the script itself get them from the server request variables.
Jim