title: why is my redirect code removing directory?
body: <p>I am trying to redirect some parts of my url but for some reason it is stripping out the directory after redirect... tried many things here is the information below</p>
  
  <p>when i go to this link</p>
  
  <pre><code>http://example.com/weddings/peacock-wedding.php
  </code></pre>
  
  <p>it redirects to</p>
  
  <pre><code>http://www.example.com/peacock-wedding.php
  </code></pre>
  
  <p>stripping out</p>
  
  <pre><code>/weddings/
  </code></pre>
  
  <p>my htaccess code</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST}  ^example.com [nocase]
  RewriteRule ^(.*)         http://www.example.com/$1 [last,redirect=301]
  </code></pre>
  
  <p>help please!</p>