title: Content files are not working when URL rewrite using htaccess
body: <p>I want to have URL redirecting when someone calls a url like example.com/page/3fssdfs it will be like page?id=3fssdfs  for this I used the following htaccess code.</p>
  
  <pre><code>RewriteRule ^page/([A-Za-z0-9-]+)/?$ page.php?id=$1
  </code></pre>
  
  <p>So with this the page loads fine when someone visits example.com/page/3fssdfs. However the CSS and image files doesn't load. When I checked the console they appear like this,</p>
  
  <pre><code>GET http://example.com/page/assets/css/index.css 404 (Not Found)
  </code></pre>
  
  <p>The css files are stored like example.com/assets</p>
  
  <p>So how can I fix the error? Thanks</p>
  
  <p><strong>UPDATE here's the full .htaccess file</strong></p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  
  #if the file does NOT exist (! means NOT, and -f means file exists)
  RewriteCond %{REQUEST_FILENAME} !-f
  #if the directory does NOT exit (-d stands for directory exists)
  RewriteCond %{REQUEST_FILENAME} !-d
  
  RewriteRule ^page/([A-Za-z0-9-]+)/?$ page.php?id=$1
  
  RewriteCond %{REQUEST_FILENAME}.php -f 
  RewriteRule ^([^\.]+)$ $1.php [NC]
  
  RewriteCond %{REQUEST_FILENAME}.html -f 
  RewriteRule ^([^\.]+)$ $1.html [NC]'
  </code></pre>