I've been trying to fix this problem for 3 days and can't find the answer so I'm hopeful someone will be able to shed some light on this.
I am looking to dynamically re-write URLs as permanent 301 re-directs for SEO purposes using .htaccess. I'm looking to change the following:
OLD URL EXAMPLE: http://example.co.uk/blog/?tag=facebook/page/5/ OLD URL EXAMPLE: http://example.co.uk/blog/?tag=twitter/page/2/ OLD URL EXAMPLE: http://example.co.uk/blog/?tag=google/page/12/
to
NEW URL: http://example.co.uk/blog/?tag=facebook&paged=5 NEW URL: http://example.co.uk/blog/?tag=twitter&paged=2 NEW URL: http://example.co.uk/blog/?tag=google&paged=12
I need to be able to re-use two dynamic properties, the tag e.g.('facebook') and the pagination number e.g.('5') for each url request that comes in as these could be different with each request.
I've tried a number of combinations of RewriteRules, RewriteConds and %{QUERY_STRING} requests and still no joy. Any help with this would be greatly appreciated!