I have the following code in my .htaccess file and it is working fine.
Options FollowSymLinks
RewriteEngine On
RewriteBase /beta
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9-]+)/([a-z0-9-]+)$ displaypage.php?page=$1&sub=$2 [NC,L]
RewriteRule ^([a-z0-9-]+)$ displaypage.php?page=$1 [NC,L]
So all my URL becomes without extension like this:
webmasterworld.com/news
webmasterworld.com/new/ok
But problem is I am unable to receive parameters using GET in URL.
For example if URL is webmasterworld.com/somenews?id=1&name=test
Then I am unable to GET parameters id and name on displaypage.php page. It is not receiving these parameters. What should I do?