title: mod_rewrite seems to mess up my ajax post script
body: <p>my getLikes script that I mentioned in a previous question doesnt work at all when I rewrite the url to a cleaner version...is that b/c it is a Post request? Everything else works fine, like the get part that looks up the user profile.
  here is the mod_rewrite:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^profile/([^/\.]+)/?$ profile.php?p=$1 [L]
  </code></pre>
  
  <p>and here is the ajax: it is supposed to get the ID and then posts to a page which returns whether the user likes this profile...its basically a like button</p>
  
  <pre><code>public function likesScript($p){?&gt;
      &lt;script&gt;
  
      //display list of people who like this
      function getLikes(){
      $.ajax({
          type: "POST",
          url: "likelist.php",
  
          data: { p: "&lt;?php echo $_GET['p']?&gt;"}
      }).success(function(res) {
  
          $("#likedBy").html(res); 
          //console.log(res); 
  
          if($('li#&lt;?PHP echo $_SESSION['userId']; ?&gt;').length){
              $(".Like").hide();
              $(".UnLike").fadeIn();
          } else {  
              $(".UnLike").hide();
              $(".Like").fadeIn();
          }
      });
  }
  </code></pre>