You are here: Re: .htaccess for file extensions? « HTML « IT news, forums, messages
Re: .htaccess for file extensions?

Posted by draphael on 10/30/05 21:34

"Mitja Trampus" <nun@example.com> wrote in message
news:3N89f.1003$h6.348198@news.siol.net...
> draphael wrote:
>> 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?
>
> Use mod_rewrite or the simpler mod_alias.
>
> I have very little experience with either, but I guess this should work:
> RedirectMatch permanent ^(.*)\.htm$ $1.html

worked like a charm! thanks so much!

best,
DRaphael

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация