title: htaccess mod_rewrite help
body: <p>i have a domain with a website in a folder.</p>
  
  <p>i.e
  <a href="http://domain.com.au/website/page.php" rel="nofollow noreferrer">http://domain.com.au/website/page.php</a></p>
  
  <p>i only have access to .htaccess files to make the rules.
  i would like my url to look like this..</p>
  
  <p><a href="http://domain.com.au/page" rel="nofollow noreferrer">http://domain.com.au/page</a></p>
  
  <p>so in essence i want to drop the subfolder its sitting in, and the php extention.</p>
  
  <p>All links in my php are structured like this though </p>
  
  <pre><code>&lt;a href="/website/page.php"&gt;page link&lt;/a&gt;
  </code></pre>
  
  <p>this is the same for js and css. they are all referenced from the 'website' folder.</p>
  
  <p>will the rewrite mean i have to change all my links?</p>
  
  <p>priority is dropping the folder from the url, not so much the php extension.</p>