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

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -