Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

How to Remove Parent Directoy from Directory Listing using..

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache on Ubuntu Problem  
Author Message
LuvLatins

External


Since: Dec 03, 2006
Posts: 2



(Msg. 1) Posted: Sun Dec 03, 2006 10:26 pm
Post subject: How to Remove Parent Directoy from Directory Listing using .htaccess
Archived from groups: alt>apache>configuration (more info?)

This has to be possible. I have a root directory where I have a web
site. Below the website I have a PUBLIC directory. So it looks like
this

/WebRoot/Public

I have an .htaccess file that looks like this

Options +Indexes +Includes
XBitHack on
IndexOptions +IgnoreCase +SuppressDescription NameWidth=*
+SuppressHTMLPreamble
HeaderName .header.html
ReadmeName .footer.html

Now the problem. I place files in the public directory that have
nothing to do with the website so I done want the users to see or be
able to click on the option for PARENT DIRECTORY.

Isnt there a way to add something to the htaccess file that will
remove the PARENT DIRECTORY so the user can see the files in the
PUBLIC direcrory and access them without a password but not be able to
go anywhere else only the PUBLIC folder

Seems so easy but cant find the solution PLEASE HELP

 >> Stay informed about: How to Remove Parent Directoy from Directory Listing using.. 
Back to top
Login to vote
LuvLatins

External


Since: Dec 03, 2006
Posts: 2



(Msg. 2) Posted: Sun Dec 03, 2006 11:47 pm
Post subject: Re: How to Remove Parent Directoy from Directory Listing using .htaccess [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Sun, 03 Dec 2006 22:26:10 -0500, LuvLatins <LuvLatins RemoveThis @mexico.com>
wrote:

>
>This has to be possible. I have a root directory where I have a web
>site. Below the website I have a PUBLIC directory. So it looks like
>this
>
>/WebRoot/Public
>
>I have an .htaccess file that looks like this
>
>Options +Indexes +Includes
>XBitHack on
>IndexOptions +IgnoreCase +SuppressDescription NameWidth=*
>+SuppressHTMLPreamble
>HeaderName .header.html
>ReadmeName .footer.html
>
>Now the problem. I place files in the public directory that have
>nothing to do with the website so I done want the users to see or be
>able to click on the option for PARENT DIRECTORY.
>
>Isnt there a way to add something to the htaccess file that will
>remove the PARENT DIRECTORY so the user can see the files in the
>PUBLIC direcrory and access them without a password but not be able to
>go anywhere else only the PUBLIC folder
>
>Seems so easy but cant find the solution PLEASE HELP

Kewl I found it further in this site. Acutally they wanted to turn it
on but in case someone else is looking the command is

IndexIgnore .?*

 >> Stay informed about: How to Remove Parent Directoy from Directory Listing using.. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
how to remove parent directory in index ? - Hello Gents I need to configure a apache web with the directory index for show the content of one or more subdirectory. My problem is how to remove from the result page the link "parent directory" I check the rules for configure apache...

htaccess, directories not visible in parent directory list.. - Hi, I use apache 2.0.54 and 2.2.0. Directory "parent" has "Options all", there's no index.html in parent, therefore the listing is generated automatically by apache. In "parent" I have a subdirectory "child", and...

Rewrite to a parent directory outside www-root - Hi, My virtual hosting setup has the following directory structure: /var/www/site-1 /var/www/site-2 /var/www/site-n The apache-root of each website is /var/www/site-n/www. Webalizer writes its output to /var/www/site-n/stats. Now I would like the..

Missing parent directory in directory index (Apache2) - In my Index-list there is no "parent directory" to klick on. Is there any option to switch on? May be in IndexOptions? Thanks Andreas

Using .htaccess to redirect to parent directory if no auth.. - My directory www.domain.com/test/ is password protected, and I have a logging script at www.domain.com/test/index.php, which will log accesses and redirect to www.domain.com/test/dir/ once authenticated. If someone accesses www.domain.com/test/dir/..
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]