I am trying to write a .htaccess rule that redirects someone asking
http://mysite.com/questions/123/my-question-name
to
http://mysite.com/questions/question_handler.php?qid=123
Here is what I wrote so far (it does not work):
Options + FollowSymLinks
Rewriteengine on
RewriteCond% {HTTP_HOST} ^ (www.)? (. *) $ [NC]
RewriteRule ^ (. *) / Questions / (\ d +) / (. *) $ Http: //%1/questions/question_handler.php? Qid =% 2 $ 1 [R = 301, L]
Any help is greatly appreciated.
source
share