php - 301 redirect in htaccess again -
i had issue while ago in post: 301 redirect in htaccess
everything on project i'm working on, it's reverse of that.
so basically, need to go from:
site.com/blah-blah/
to this:
site.com/blah-blah.123 (the id of article)
the problem don't know id of article unless run php query have no idea how htaccess. possible?
the solution in other post this:
rewriterule ^industry/([a-za-z0-9-]+).([0-9]+)/$ /$1/ [r=301]
but wouldn't work if reversed it. ideas? thanks.
Comments
Post a Comment