Add QSA
flag:
Options +FollowSymLinks -MultiViews
RewriteRule ^list$ list.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^page/([^/]+)/?$ pages.php?x=$1 [L,QSA,NC]
QSA
(Query String Append) flag preserves existing query parameters while adding a new one.- Information about Apache's content negotiation.
+FollowSymLinks
makes Apache follow symbolic links.-MultiViews
make turns off content negotiation
For CSS/JS/image:
- Use absolute path in your css, js, images files rather than a relative one. Which means you have to make sure path of these files start either with
http://
or a slash/
. - OR else You can try adding this in your page's header:
<base href="/" />