title: htaccess remove string from url by 301 redirect
body: <p>Need help to strip out this string from url</p>
  
  <pre><code>  index....&lt;/div&gt;&lt;/images/myblog_images/978
  </code></pre>
  
  <p>Incorrect URL</p>
  
  <pre><code> http://www.abc.com/index....%3C/div%3E%3C/images/myblog_images/978/index.php?option=com_news&amp;view=detail&amp;n_id=20&amp;Itemid=4
  </code></pre>
  
  <p>Correct URL</p>
  
  <pre><code>http://www.abc.com/index.php?option=com_news&amp;view=detail&amp;n_id=20&amp;Itemid=4
  </code></pre>
  
  <p>Many thanks</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Hello Anubhav
  While applying the htaccess condition - the url is been changed to</p>
  
  <pre><code>http://www.abc.com/home/truecar7/public_html/index.php?option=com_news&amp;view=detail&amp;n_id=20&amp;Itemid=4
  </code></pre>