I have a file called "abc.html". In the past this was called "abc.cfm". From an outsider's point of view I want it to look like abc.cfm still exists (and it should be the content of abc.html).
Currently I have this in my htaccess: RewriteRule ^abc.cfm$ abc.html [L]
This works perfectly. Whenever you go to abc.cfm, it shows the content of abc.html, withour redirects (from the user's POV).
The problem is that I can also reach abc.html now and that's duplicate content. I can solve this by adding a canonical saying the abc.cfm is original URL. I just wondered if it's possible to have a 301 from the html to the cfm file (which internally calls for the html again). Without getting into an infinite loop of course :-)
I am also open for other solutions. (but I can't change the links pointing to the abc.cfm file and I don't want a 301 redirect to the abc.html file)