I had an issue a while ago in this post: 301 redirect in htaccess
Everything is good but now on another project I'm working on, it's actually the reverse of that.
So basically, I need to to go from:
site.com/blah-blah/
To this:
site.com/blah-blah.123 (the id of the article)
The problem is I don't know what the ID of the article is unless I run a PHP query which I have no idea how to do with htaccess. Is this possible?
The solution in the other post is this:
RewriteRule ^industry/([a-zA-Z0-9-]+).([0-9]+)/$ /$1/ [R=301]
But that wouldn't work if I reversed it. Any ideas? Thanks.