rewriting htaccess file loosing css files broblem
<p>Hi this is my first question here thank you for your help.</p>

<p>in my website ( using php ) i have a page  called  <code>http://domaine.com/details.php?slug=this-is-a-slug</code> and i want it to looks like this   <code>http://domaine.com/this-is-a-slug</code> and in the same page <code>details.php</code> i have system comments with pagination so sometimes the URL might looks like this  <code>http://domaine.com/details.php?slug=this-is-a-slug&amp;page=2</code> if the user click on the next page to see comments  .</p>

<p>in the root i have :</p>

<pre><code> .htaccess file
index.php
 details.php
style.css
images/..
js/
css/details.css and other stylelsheet files
details.php 
.
.
. others pages and files
</code></pre>

<p>so i wrote this  code bellow in .htaccess file :</p>

<pre><code>RewriteEngine On 
RewriteRule ^([a-zA-Z0-9_-]+)$ details.php?slug=$1
RewriteRule  ^([a-zA-Z0-9_-]+)/([0-9]+)/$  details.php?slug=$1&amp;page=$2 [NC,L,QSA]
</code></pre>

<p>and the url become indeed <code>http://domaine.com/this-is-a-slug</code> but when i click on pagination  and the url become  <code>http://www.domain.com/this-is-a-slug/2/</code> .</p>

<p>the pagination works but the problem is that  the css files not loading and my website looks weird ? </p>

<p>can any one help me please ?  </p>