I am trying to remove php extension from url, But its not working for me. I am using Windows 7, with apache2.2.17 and php5.3. Now I have configured it as
in .htaccess file
OPTIONS -Indexes IndexIgnore * Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME}.php -f RewriteCond %{REQUEST_URI} !/$ RewriteRule (.*) $1\.php [L] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ /$1 [R=301,L] in httpd.conf enabled mod_rewrite as
LoadModule rewrite_module modules/mod_rewrite.so and
<Directory "D:/Apache/htdocs"> Options Indexes FollowSymLinks ExecCGI MultiViews AllowOverride all Order allow,deny Allow from all </Directory> in php.ini
expose_php = On After making these configuration still i am not able to remove php extension from url in my windows machine but same thing is working in ubuntu server.
Is there anything I am missing here?