I am trying to rewrite a url if the url contains a certain word.
If the url contains "about.cfm", I want it to rewrite as www.site.com/about
Now it could be just www.site.com/about.cfm, or it could be further in the url like www.site.com/something/else/about.cfm. Either way, I need it to redirect regardless of where the word about.cfm is in the url.
Currently I have this but it doesn't seem to be working well.
RewriteCond %{REQUEST_URI} !/about$
RewriteRule ^about\.cfm$ /about [R=301,L]
Can anyone help? What am I doing wrong?
Thanks!
[edited by: famouswebteam at 3:26 pm (utc) on May 17, 2010]