I want to change the extension of php file.For example the file home.php is called in browser it should be shows like home.html.
I can done it in codeigniter by using suffix variable in config file.But how can i achieve it in core php? I think it can be done through .htaccess file or may be from other way but how to do?please let me know.
i try:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.html
by using above code i try to but it is was not changed? or if there any other way to do it please let me know.
Use this rule :
It will redirect any request to a html file (that does not exists phisicaly) to a php file.