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!...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
"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 |
|
|||
|
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. |
|
|||
|
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... |
|
|||
|
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 |
|
|||
|
"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 :-} |