Trim .php extension using .htaccess
Trim your .php extension in your web application using .htaccess RewriteEngine on RewriteRule ^$ index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ $1/index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)$ $1.php
Discover the new direction...
Trim your .php extension in your web application using .htaccess RewriteEngine on RewriteRule ^$ index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)/$ $1/index.php RewriteRule ^([a-zA-Z0-9\-\_/]*)$ $1.php
The domain has to be redirected from http://domain.com to http://www.domain.com to stop content duplication. This has to be done by creating the .htaccess file in the root folder. creating .htacces file is very simple....