Hi all.
I have a site with articles and members and since the url ends for both like.. site.com/articles.php?id=232 or site.com/ref.php?user=3232
I costumised this script I found online to costumize the url. I did for the profiles which is working, but I can't add for the articles:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ ref.php?user=$1 [QSA,L]
that code is modified to redirect user profiles which would look like site.com/ref.php/user=47 to look like site.com/john
But now I need the same for news article urls too. In my page, the url for articles is like site.com/articles.php?id=1232 and I need it to be like site.com/articles/here_is_todays_article
So, my question is how do I add to the above code?