I'm currently wondering if settign up a double redirect is the best way to maintain google listings and neat addresses while avoiding duplicate content and 404s.
Basically to move from man ugly: /somefolder/cgi-bin/somescript.cgi/somecategory/someid to /somecategory/someid
I frest set a mod_rewrite fform the later to the first. This works, well and should add the nice from to teh google index with the next crawl. But google might re-spider the old address as well causign me to show duplicate content.
So I wonder how to set up a double redirect like this: FROM /somefolder/cgi-bin/somescript.cgi/somecategory/someid TO 301 permanent redirect /somecategory/someid
AND FROM /somecategory/someid TO internal redirect somefolder/cgi-bin/somescript.cgi/somecategory/someid
in mod_rewrite without infinite loops. And woudl that have the desired effect of google expelling hte original old URLs from its index and replacign it with the new form while still makign external links fanctional?