Tagged: htaccess

Trim .php extension using .htaccess 0

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

Domain redirect 0

Domain redirect

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....