title: .htaccess rewrite won't load css in a few occasions
body: <p>This is my rewrite rule:</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME}.php -f
  RewriteCond %{REQUEST_URI} !/$
  #RewriteRule (.*)/?$ $1\.php [L]
  RewriteRule profile/ profile.php
  RewriteRule profile profile.php
  </code></pre>
  
  <p>i'm a bit new at this, but when I go to localhost/profile, everything loads fine, but when I go to localhost/profile/ the actual page loads, but the css doesn't load, I gotta manually change it to /style.css for it to load, does anyone know how I can do this while making the / at the end optional (without having to put my entire domain or the absolute path)? Thanks.</p>