I wrote rewriteurl statement that removes .php extension, but it is not working..

Here it is the .htaccess code.

Options +FollowSymLinks
Options +Indexes
RewriteEngine on

RewriteCond %{HTTP_HOST} ^3gphone\.in$ [NC]
RewriteRule ^(.*)$ http://www.3gphone.in/$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /products.php?pname=$1 [L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.