Redirect comment permalink to their corresponding node paths Is there any way in drupal to  redirect comment permalink to their corresponding node paths or url alias?

I want to redirect all comment/x paths to their corresponding node-path. And it should handle pagers as well. If your comment is in the second page (when you have set a comments-per-page value in node type settings), it should be like

http://example.com/comment/111 to http://example.com/node/123?page=1#comment-111

http://example.com/comment/111 to http://example.com/node/123#comment-111
http://example.com/comment/112 to http://example.com/node/123#comment-112


Thanks in Advance!
I managed to acheive it through hook_menu_alter. It just works great for me

&lt;?php
/**
* Implements hook_menu_alter.
* @author Md Eqbal Ahmad &lt;*****@******.com&gt;
*/
function MODULE_menu_alter(&amp;$items) {
  $items['comment/%']['page callback'] = 'MODULE_commentpermalink';
}

/**
 * Redirect comment permalink to their corresponding node paths
 * @author Md Eqbal Ahmad &lt;*****@*****.com&gt;
*/
function MODULE_commentpermalink($cid) {
  if (($comment = comment_load($cid)) &amp;&amp; ($node = node_load($comment-&gt;nid))) {
    // Find the current display page for this comment.
    $page = comment_get_display_page($comment-&gt;cid, $node-&gt;type);
    // Now, rather than setting menu_executive_active_handler and changin $_GET valies, we redirect them to the actual node URL with fragments and pager set.
    if ($page &gt; 0) {
      drupal_goto("node/$comment-&gt;nid", array('fragment'=&gt;"comment-$comment-&gt;cid",'query'=&gt;array('page'=&gt;$page)), 301);
    }
    else{
      drupal_goto("node/$comment-&gt;nid", array('fragment'=&gt;"comment-$comment-&gt;cid"), 301);
    }
  }
  drupal_not_found();
}

?&gt;