apache - .htaccess RewriteRule: is this the correct way? -


i'm working on project want move content ip.board custom forum system. 1 step away completion, last step gives "500" server error. want ask, correct rewrite rule?

rewriterule ^index.php?/file/(.*)-(.*)/$ http://www.example.com/index.php?page=file&id=$1 [r=301, l] 

if not, how should read like?

you can use following :

rewritecond %{the_request} /index\.php\?/file/([^-]*)-([^/]*)/? [nc] rewriterule ^ http://www.example.com/index.php?page=file&id=%1 [r=301,l] 

Comments