CNC links using.htaccess

Hello. There is such a url address

http://домен/index.php?table=datapages&pages=news

I want to use it .htaccess get this

http://домен/index/datapages/news

I read a lot of articles about this on the Internet, but nothing works. From the last article like from this

RewriteEngine on

RewriteRule ^index/([^/]+)/([^/]+) index.php?table=$1&pages=$2

It should work, but nothing changes, help if you can.

Author: Oleg Shleif, 2013-03-07

2 answers

RewriteEngine On
RewriteRule ^index/([A-Za-z0-9_]+)/([A-Za-z0-9_]+)$ /index.php?table=$1&pages=$2 [L,QSA]
 4
Author: PHP, 2013-03-07 10:36:34

And if so try (general view):

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !^favicon\.ico
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [L,QSA]
 0
Author: ghost rider, 2013-03-07 08:56:25