<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1027942" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1027942</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165264</link>
    <description> &lt;p&gt;thats why you need to have an htaccess file that says &lt;/p&gt;
&lt;p&gt;-indexes&lt;/p&gt;
&lt;p&gt;OR &lt;/p&gt;
&lt;p&gt;DirectoryIndex /index.html (or whatever the front page file name is)&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Feb 2005 18:41:35 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1165264 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165263</link>
    <description> &lt;p&gt;i do have a 404 error like so:&lt;/p&gt;
&lt;p&gt;ErrorDocument 404 &lt;a href=&quot;http://www.jungleravers.com&quot; class=&quot;bb-url&quot;&gt;http://www.jungleravers.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;but it does do anything in some places, eg:&lt;br /&gt;
&lt;a href=&quot;http://jungleravers.com/ravereviews/reviews/nottingham/&quot; class=&quot;bb-url&quot;&gt;http://jungleravers.com/ravereviews/reviews/nottingham/&lt;/a&gt;&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Feb 2005 18:32:38 +0000</pubDate>
 <dc:creator>jungleravers</dc:creator>
 <guid isPermaLink="false">comment 1165263 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165262</link>
    <description> &lt;p&gt;thanks so much guys for replying.&lt;/p&gt;
&lt;p&gt;im not fussed if it goes to the parent directory, that would be ideal.&lt;/p&gt;
&lt;p&gt;at least if it gets redirected to my homepage that would be great!&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Feb 2005 18:30:45 +0000</pubDate>
 <dc:creator>jungleravers</dc:creator>
 <guid isPermaLink="false">comment 1165262 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165229</link>
    <description> &lt;p&gt;No, he wanted them redirected to the parent directory, that sadly wouldn&#039;t do it, unless you can do:&lt;/p&gt;
&lt;p&gt;DirectoryIndex ../index.html&lt;/p&gt;
&lt;p&gt;I haven&#039;t tried, but I have my doubts.&lt;/p&gt;
&lt;p&gt;[EDIT]&lt;br /&gt;
I was wrong, you CAN do that, ../ (though it will depend on how many levels down you go) but /index.html will redirect to the parent. Only 1 problem with that, if images aren&#039;t listed from the base dir /images/whatever (leading slash most important) then they won&#039;t show, because the browser is confused. php or other server side applications don&#039;t care, because the same file is being executed, it&#039;s just something different being sent to the browser.&lt;/p&gt;
 </description>
     <pubDate>Tue, 01 Feb 2005 00:00:04 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1165229 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165228</link>
    <description> &lt;p&gt;I redirected *to* an index page with .htacces for my Gallery...I wanted to over ride the index.php page so I used this in .htaccess:&lt;/p&gt;
&lt;p&gt;DirectoryIndex index.html index.php&lt;/p&gt;
&lt;p&gt;I&#039;m not sure if it will work, but you could try:&lt;br /&gt;
DirectoryIndex yourpage.html index.html&lt;/p&gt;
&lt;p&gt;Just make a copy of the file, so you can go back to it, if it doesn&#039;t work.&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 Jan 2005 23:26:57 +0000</pubDate>
 <dc:creator>Roo</dc:creator>
 <guid isPermaLink="false">comment 1165228 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165221</link>
    <description> &lt;p&gt;Well, for directories without indexs, you&#039;d set the htaccess to not list the files in the directories, by placing in the most parent directory a .htaccess of:&lt;/p&gt;
&lt;p&gt;Options -indexes&lt;/p&gt;
&lt;p&gt;then, you&#039;d have to add a 403 error page, since they would be forbidden from that directory, and you could have it act as a redirect page, or something to that effect. By default, you can name the page Error403.html (I think) that will differ depending on your server, but I think there is .htaccess to set that as well.&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 Jan 2005 21:35:23 +0000</pubDate>
 <dc:creator>CptAwesome</dc:creator>
 <guid isPermaLink="false">comment 1165221 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165213</link>
    <description> &lt;p&gt;You could easily do it back to your homepage by setting the 404 error to redirect the user to the homepage, however this is not considered good 404 handling - what about a genuine 404, a dead link points the user back to the homepage - now that would be confusing! Possibly the best way is via script (unless you setup each .htaccess for every folder manually, this wouldn&#039;t be worth the time expense as you could have spent the time building indexes for every folder!)&lt;/p&gt;
&lt;p&gt;We&#039;ll see what Greg comes back with &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;
 </description>
     <pubDate>Mon, 31 Jan 2005 20:56:47 +0000</pubDate>
 <dc:creator>JeevesBond</dc:creator>
 <guid isPermaLink="false">comment 1165213 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/webmasters-corner/hiding-index-directories-htaccess#comment-1165211</link>
    <description> &lt;p&gt;I&#039;m not sure if this can be completely done in the .htaccess or not.&lt;/p&gt;
&lt;p&gt;Using both .htaccess and a script it can be done. Changing the .htaccess to block dislaying directories without indexes, then setting a custom 403 error that runs a script to check back up the directory tree for a proper index.&lt;/p&gt;
&lt;p&gt;I&#039;m in a rush right now. Later on if no one else posts a script for it (or another method) I&#039;ll write one to put on here.&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Mon, 31 Jan 2005 20:32:47 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1165211 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
