And second, I want to make sure your expectations are set appropriately. Even after this rewrite rule, the ugly-looking URL will still exist and still work. The rewrite rule allows the pretty-looking URL to work in addition to the ugly-looking URL. If you have HTML links, you’ll need to update them to point to the new pretty-looking URL.
This entire .htaccess thing is confusing me a lot!
Even after this rewrite rule, the ugly-looking URL will still exist and still work. The rewrite rule allows the pretty-looking URL to work in addition to the ugly-looking URL. If you have HTML links, you’ll need to update them to point to the new pretty-looking URL
This might be a funny question to ask but here goes. I see you are using Coldfusion. Typically I’ve seen Coldfusion run under Windows Server which usually means it uses IIS.
Do you know what server software you are running your website under? Are you using Apache or IIS?
htaccess won’t work under IIS unless you have some plugin or something installed on the server but right out of the box IIS doesn’t use htaccess. htaccess works with Linux / Apache.
Your htaccess should work on the server since you are using apache, but it won’t work locally because you are running IIS.
See this thread here for more details - you can add something to your IIS to make it support htaccess, but out of the box IIS doesnt know what htaccess is: