I am using the following rules :
RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)\.html$ http://subdomain\.maindomain\.com/process\.php?id=$1&ad=$3 [R=301,L]
RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ http://subdomain\.maindomain\.com/process\.php?id=$1&ad=$3&page=$4 [R=301,L]
RewriteRule ^([0-9]+)-([a-zA-Z0-9-]+)-([0-9]+)-url\.html$ http://subdomain\.maindomain\.com/form\.php?id=$1&keyword=$2&url=$3 [R=301,L]
RewriteRule ^([0-9]+)-([a-zA-Z0-9-]+)-([0-9]+)-custom\.html$ http://subdomain\.maindomain\.com/form\.php?id=$1&keyword=$2&custom=$3 [R=301,L]
But none of them works. What am I doing wrong here ?
RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)\.html$ http://subdomain\.maindomain\.com/process\.php?id=$1&ad=$3 [R=301,L]
RewriteRule ^([0-9]+)-([a-z]+)-([0-9]+)-([0-9]+)\.html$ http://subdomain\.maindomain\.com/process\.php?id=$1&ad=$3&page=$4 [R=301,L]
RewriteRule ^([0-9]+)-([a-zA-Z0-9-]+)-([0-9]+)-url\.html$ http://subdomain\.maindomain\.com/form\.php?id=$1&keyword=$2&url=$3 [R=301,L]
RewriteRule ^([0-9]+)-([a-zA-Z0-9-]+)-([0-9]+)-custom\.html$ http://subdomain\.maindomain\.com/form\.php?id=$1&keyword=$2&custom=$3 [R=301,L]
But none of them works. What am I doing wrong here ?