I have a site with a lot of links that look like
/click.php_id=602_from=139_to=42_url=1.html. I'd like to setup a redirect using
.htaccess file(s) to have links that look like
/click.php?id=602&from=139&to=42&url=1. But how would I do that?
I've never used .htaccess (don't forget to permit .htaccess to actually rewrite requests), but in Apache's conf it would be more or less like this:
RewriteRule /click.php_id=([0-9]+)_from=([0-9]+)_to=([0-9]+)_url=([0-9]+)\.html$ /click.php?id=$1&from=$2&to=$3&url=$4
you need to check my syntax, I just typed this from memory