I am trying to rewrite the URL (using mod_rewrite) as requested by the user:
http://example.com/question/1/
To load this URL from the server:
http://www.example.com/question.php?qid=1
I am currently using the rewrite rule:
RewriteEngine On
RewriteRule ^question/([^/\.]+)/?$ question.php?qid=$1 [L]
But this does not work. I have tried other things in the .htaccess (such as redirects) and this work, so I know that the .htaccess is being processed.
Thank you.
According to your example, your rewrite rule should be something like: