title: how to make url rewiting works on read more link
body: <p>I have read more link that shows part of the text. When clicked, it shows the rest of the text on next page. Here is my code:</p>
  
  <pre><code>&lt;?php
  
  $content = "";
  $link = "linkreadmore.php";
  $limit = 400;
  function readMore($content,$link,$var,$id, $limit) {
      $content = substr($content,0,$limit);
      $content = substr($content,0,strrpos($content,' '));
      $content = $content." &lt;a href='$link?$var=$id'&gt;More...&lt;/a&gt;";
      return $content;
  
   ?&gt;
  </code></pre>
  
  <p>Now i want rewrite the URL of linkreadmore.php which lives in folder1/folder2/linkreadmore.php. Here is my rewrite rule.</p>
  
  <pre><code>RewriteRule ^/?more/([0-9]+)$ /socialM/polip/linkreadmore.php?var=$1 [L]
  </code></pre>
  
  <p>Then, i rewrite the read more script like this.</p>
  
  <pre><code>&lt;?php
  
  $content = "";
  $link = "more";
  $limit = 400;
  function readMore($content,$link,$var,$id, $limit) {
      $content = substr($content,0,$limit);
      $content = substr($content,0,strrpos($content,' '));
      $content = $content." &lt;a href='/$link/=$id'&gt;More...&lt;/a&gt;";
      return $content;
  
  ?&gt;
  </code></pre>
  
  <p>It shows file not found. What am I missing here?</p>