<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1037153" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1037153</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/html-filenames#comment-1213384</link>
    <description> &lt;p&gt;Well, technicalities aside (mod-rewrite and such) using index.html it does make things a little easier.&lt;/p&gt;
&lt;p&gt;So instead of having: [incode]jsworld.co.uk/funtybunt/apagenameandthat.html[/incode] you could have: [incode]jsworld.co.uk/funtybunt/[/incode] and the server will know that it should get [incode]jsworld.co.uk/funtybunt/index.html[/incode]&lt;/p&gt;
&lt;p&gt;Using index.html makes URL&#039;s look nicer and involves less typing. There&#039;s also the consideration that if you have: [incode]jsworld.co.uk/funtybunt/apagenameandthat.html[/incode] a person may be able to type in: [incode]jsworld.co.uk/funtybunt/[/incode] and get a listing of all the files and directories in the funtybunt directory. That does depend on how your server is setup though, and most of the time it makes no difference if people can see that stuff.&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Jan 2007 07:44:32 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1213384 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/html-filenames#comment-1213379</link>
    <description> &lt;blockquote class=&quot;bb-quote-body&quot;&gt;&lt;p&gt;&lt;strong&gt;conrad;213363 wrote:&lt;/strong&gt; ...if your using a microsoft server you can change the starting pages in the IIS server and add the file type. Also, without going too far into it, you can also define your own extensions and say how to handle them. For example I could say that all files with the extension .csh are processed with html.  But thats a big world all on it&#039;s own &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You can do this in Apache as well. Simply edit the httpd.conf or .htaccess file with the filename and extension. It is strongly recommended that you never use .htaccess as it increases page generation times and server stress.&lt;/p&gt;
&lt;p&gt;To add a file extension in the .htaccess use&lt;br /&gt;
&lt;code&gt;AddType text/html .ext&lt;/code&gt;&#039;&lt;/p&gt;
&lt;p&gt;To add a file extension in the httpd.conf use&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;Directory /www/htdocs/&amp;gt;&lt;br /&gt;AddType text/html .ext&lt;br /&gt;&amp;lt;/Directory&amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Fri, 12 Jan 2007 07:11:12 +0000</pubDate>
 <dc:creator>mik-crap</dc:creator>
 <guid isPermaLink="false">comment 1213379 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/html-filenames#comment-1213323</link>
    <description> &lt;p&gt;Not all webpages should be called index.html, just the first page you want people to see when they view each directory of your site.&lt;/p&gt;
&lt;p&gt;You can use .htaccess or a server-side scripting language to automatically redirect the user to your true homepage.&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;RewriteCondition %{HTTP_HOST} ^(domain.com/|domain.com/index.html)$ [NC]&lt;br /&gt;RewriteRule ^(.*)$ http://www.domain.com/truehome.html$ [R=301,L]&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
The above would appear in the .htaccess file of your root. Change domain.com, and truehome to the values you want. This script would automatically redirect people from &lt;a href=&quot;http://www.domain.com/&quot; class=&quot;bb-url&quot;&gt;http://www.domain.com/&lt;/a&gt; or &lt;a href=&quot;http://www.domain.com/index.html&quot; class=&quot;bb-url&quot;&gt;http://www.domain.com/index.html&lt;/a&gt; to &lt;a href=&quot;http://www.domain.com/truehome.html&quot; class=&quot;bb-url&quot;&gt;http://www.domain.com/truehome.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Alternatively, a much nicer way would be:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt; header&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&#039;Location: truehome.php&#039;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;); &lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;
But that is based on the assumption your server supports php.&lt;/p&gt;
&lt;p&gt;You could also edit (if you own the server or have access to) the httpd.conf to use whatever.html as your index.&lt;/p&gt;
 </description>
     <pubDate>Thu, 11 Jan 2007 18:07:54 +0000</pubDate>
 <dc:creator>mik-crap</dc:creator>
 <guid isPermaLink="false">comment 1213323 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
