title: Change Spaces (%20) to -
body: <p>Hey I have my website URL linking to here at the moment:</p>
  
  <pre><code> &lt;div id="blog_posts_container"&gt;
      &lt;h3&gt;&lt;a href="&lt;?php echo (isset($row_getDisplay['post_id']) ? $row_getDisplay['post_id'] : ''); ?&gt;_&lt;?php echo (isset($row_getDisplay['title']) ? $row_getDisplay['title'] : ''); ?&gt;.html"&lt;?php echo (isset($row_getDisplay['title']) ? $row_getDisplay['title'] : ''); ?&gt;&lt;/a&gt;&lt;/h3&gt;
  </code></pre>
  
  <p>and in my .htaccess I have:</p>
  
  <pre><code>RewriteRule ^([^_]*)_([^_]*).html$ post.php?post_id=$1&amp;title=$2 [L]
  </code></pre>
  
  <p>How would I get my URLS from "86_I%20am,%20who%20I%20am.html" to "86_I-am-who-I-am.html"</p>
  
  <p>EDIT:
  I did it and I got it to replace special characters such as : ; / etc but now it has the spaces again. Here is my code:</p>
  
  <pre><code>&lt;h3&gt;&lt;a href="&lt;?php echo (isset($row_getDisplay['post_id']) ? $row_getDisplay['post_id'] : ''); ?&gt;_&lt;?php echo str_replace(array(':', '\\', '/', '*'), ' ', urldecode($row_getDisplay['title'])); ?&gt;.html" &gt;&lt;?php echo (isset($row_getDisplay['title']) ? $row_getDisplay['title'] : ''); ?&gt;&lt;/a&gt;&lt;/h3&gt;
  </code></pre>