.htaccess for displaying the .html files

Posted by user310850 on Stack Overflow See other posts from Stack Overflow or by user310850
Published on 2010-04-07T12:25:46Z Indexed on 2010/04/07 12:53 UTC
Read the original article Hit count: 219

Filed under:
|

I have three files in a folder 'test'

one.php
two.php
print.html

And i have .htaccess file in the same folder

RewriteEngine On
RewriteBase /test/
RewriteRule ^(.+)\.html$ $1\.php [L]

if we take the print.html in browser , there will be error , because of .htaccess file, for there is no 'print.php' page

How can we solve it , by modifing the .htaccess file. So that while taking the print.html, it should display in the browser

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite