.htaccess for file extensions?



Hi,

Is there a way to configure .htaccess so that requests for files ending in
..htm are redirected to the same file name but with an extension of .html?

Requests for .htm pages are showing up in my error logs. The page name is
right but the extension should be .html. I don't know where these are coming
from, I'd rather that folks were directed to the correct page, rather than
the 404 page.

If it's possible I'd surely be grateful for the solution!

Thanks!!
DRaphael


.



Relevant Pages

  • Re: .htaccess for file extensions?
    ... Is there a way to configure .htaccess so that requests for files ending in .htm are redirected to the same file name but with an extension of .html? ... RedirectMatch permanent ^\.htm$ $1.html ...
    (alt.html)
  • Re: Publishing a selection to the web (static)
    ... > Make sure that this filename has the htm extension you are looking for. ... >> range of cells to a .HTM file using a specified cell as the filename. ... Now when I run my macro in office 2003, ...
    (microsoft.public.excel)
  • Re: htm vs. php problem
    ... If I just change the extension to .php, it takes less than 1 second ... I know what you are saying...but going with .php extensions is out ... If your PHP code is being processed in a .htm file then the webserver must ...
    (comp.lang.php)
  • Re: Hide ASPX Extension
    ... That method not only hides the extension, ... reducing the throughput for the server where that "solution" is implemented. ... >> requests for http://www.mysite.com sent to default.aspx ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: searhes find htm and not html
    ... I used Google for the search and it gives you the links to the cached pages: ... And notice that the second hit for your site does reflect the .html file ... upload htm files but it doesn't let me use them. ... file extension, and that is cached. ...
    (microsoft.public.publisher.webdesign)