AddDefaultCharset UTF-8
RewriteEngine On
RewriteCond %{REQUEST_FILENAME}
!-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$
$1.php
RewriteRule ^id([0-9]+)$ pages/profile.php?id=$1
[L,QSA]
RewriteRule ^news/([0-9]+)$ news/news.php?id=$1
[L,QSA]
RewriteRule ^comments/([0-9]+)$ news/comments.php?id=$1 [L,QSA]