My url structure is like this http://www.site.com/index.php?section=news&id=30
and I need it to be http://www.site.com/news/30/
I have written down this .htaccess file,
Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)/(.*)/(.*) /index.php?section=$1&id=$2 [QSA]
RewriteRule ^(.*)/(.*) /index.php?section=$1&id=$2 [QSA]
RewriteRule ^(.*)/ /index.php?section=$1 [QSA]