Any differnce between .htm and .html in Apache2?

This is a discussion on Any differnce between .htm and .html in Apache2? within the Apache Web Server forums, part of the Web Server and Related Forums category; Is there any difference in Apache2 if files end in a .htm or a .html? Thanks!...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-27-2006
scott
 
Posts: n/a
Default Any differnce between .htm and .html in Apache2?

Is there any difference in Apache2 if files end in a .htm or a .html?

Thanks!
  #2 (permalink)  
Old 03-28-2006
Daniel :-}
 
Posts: n/a
Default Re: Any differnce between .htm and .html in Apache2?

"scott" <svetter@ameritech.net> wrote in message
news:Ws_Vf.63628$dW3.47222@newssvr21.news.prodigy. com...
> Is there any difference in Apache2 if files end in a .htm or a .html?
>
> Thanks!


By default The "DirectoryIndex" directive defines which page to be
displayed.

For example, in your httpd.conf file you will see this directive.

<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>

You can add these if you need to. {index.htm, default.html, default.htm,
default.php and index.php} or any other that you think you will need.

Hope this helps.

Daniel :-}

www.danielpeart.net


  #3 (permalink)  
Old 03-28-2006
scott
 
Posts: n/a
Default Re: Any differnce between .htm and .html in Apache2?

Daniel :-} wrote:
> "scott" <svetter@ameritech.net> wrote in message
> news:Ws_Vf.63628$dW3.47222@newssvr21.news.prodigy. com...
>> Is there any difference in Apache2 if files end in a .htm or a .html?
>>
>> Thanks!

>
> By default The "DirectoryIndex" directive defines which page to be
> displayed.
>
> For example, in your httpd.conf file you will see this directive.
>
> <IfModule mod_dir.c>
> DirectoryIndex index.html
> </IfModule>
>
> You can add these if you need to. {index.htm, default.html, default.htm,
> default.php and index.php} or any other that you think you will need.
>
> Hope this helps.
>
> Daniel :-}
>
> www.danielpeart.net
>
>


Most excellent. It works. Thank you.
  #4 (permalink)  
Old 03-28-2006
Soup
 
Posts: n/a
Default Re: Any differnce between .htm and .html in Apache2?

Daniel :-} wrote:
> "scott" <svetter@ameritech.net> wrote in message
> news:Ws_Vf.63628$dW3.47222@newssvr21.news.prodigy. com...
>> Is there any difference in Apache2 if files end in a .htm or a .html?
>>
>> Thanks!

>
> By default The "DirectoryIndex" directive defines which page to be
> displayed.
>
> For example, in your httpd.conf file you will see this directive.
>
> <IfModule mod_dir.c>
> DirectoryIndex index.html
> </IfModule>
>
> You can add these if you need to. {index.htm, default.html, default.htm,
> default.php and index.php} or any other that you think you will need.
>
> Hope this helps.
>
> Daniel :-}
>
> www.danielpeart.net
>
>

Does this mean I could create a page named this.that and use this
directive to make only that page load by default? Could you use a
wildcard like index.*?

This may be a stupid question and show how much I do not know about
apache...
  #5 (permalink)  
Old 03-28-2006
Robert Ionescu
 
Posts: n/a
Default Re: Any differnce between .htm and .html in Apache2?

Soup wrote:
> Does this mean I could create a page named this.that and use this
> directive to make only that page load by default?


Yes. But make sure you're sending the correct content-type.

> Could you use a
> wildcard like index.*?


AFAIK no, but you could try index and set
Options +MultiViews

but if it works at all, I wouldn't recommend it.

--
Robert
  #6 (permalink)  
Old 03-28-2006
Daniel :-}
 
Posts: n/a
Default Re: Any differnce between .htm and .html in Apache2?

"Soup" <soupatech@gmail.com> wrote in message
news:%X%Vf.9670$8Y2.7406@fed1read03...
> Daniel :-} wrote:
>> "scott" <svetter@ameritech.net> wrote in message
>> news:Ws_Vf.63628$dW3.47222@newssvr21.news.prodigy. com...
>>> Is there any difference in Apache2 if files end in a .htm or a .html?
>>>
>>> Thanks!

>>
>> By default The "DirectoryIndex" directive defines which page to be
>> displayed.
>>
>> For example, in your httpd.conf file you will see this directive.
>>
>> <IfModule mod_dir.c>
>> DirectoryIndex index.html
>> </IfModule>
>>
>> You can add these if you need to. {index.htm, default.html, default.htm,
>> default.php and index.php} or any other that you think you will need.
>>
>> Hope this helps.
>>
>> Daniel :-}
>>
>> www.danielpeart.net

> Does this mean I could create a page named this.that and use this
> directive to make only that page load by default? Could you use a wildcard
> like index.*?
>
> This may be a stupid question and show how much I do not know about
> apache...


As far as I know {What do I Know?} the wildcard option would not work.

HTH

Daniel :-}


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:13 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0