如何使用.htaccess重写规则?

i am working on a project which required SEO, for SEO its needed user-friendly URLs, i want to make my url look user-friendly, this is my .htaccess code i want to make my url look like:

http://localhost/footboleh/article/Some-text

while curruntly its look like:

http://localhost/footboleh/article?url=Some-text

.htaccess code:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ article.php?url=$1 [QSA,L]

i had try some rewrite rules which are

RewriteRule ^(.*)$ article.php?url=$1 [QSA,L]

its bring me index page without css and js and giving error in console console error :

Uncaught SyntaxError: Unexpected token <

and i had print_r ($_GET] its shows:

Array ( [url] => article/some-text.php )

You need to exclude your css and js files from the rewrite, usually via:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

just before your rewriterule line.