cancel
Showing results for 
Search instead for 
Did you mean: 

.htaccess in ccgi space

Philw
Newbie
Posts: 3
Registered: ‎08-06-2008

.htaccess in ccgi space

Hi
I have a .htaccess file to password protect a directory in my ccgi space, but it only works if the URL has no trailing slash - eg
http://ccgi.MYUSERNAME.plus.com/cgi-bin/test
forces the password request dialog to be shown.  But
http://ccgi.MYUSERNAME.plus.com/cgi-bin/test/
just shows the default page (in this case index.php) without requesting a password.  If there is no default page, then the password is always requested.
Plusnet support have offered a few solutions - playing with the path in the .htaccess file etc, but with no success.
Any ideas?
Cheers
Phil
4 REPLIES 4
Peter_Vaughan
Grafter
Posts: 14,469
Registered: ‎30-07-2007

Re: .htaccess in ccgi space

You cannot use .htaccess to protect .php files on the ccgi server as .php files are accessed outside of the Apache web server and thus .htaccess has no effect.
Philw
Newbie
Posts: 3
Registered: ‎08-06-2008

Re: .htaccess in ccgi space

Thanks.
So, is there any automatic way of password protected cgi stuff?  I only need single user access to a certain part of the site.  If there isn't, then I'll write some user management stuff; just don't want to re-invent the wheel.
Cheers
Phil
Peter_Vaughan
Grafter
Posts: 14,469
Registered: ‎30-07-2007

Re: .htaccess in ccgi space

Start writing Wink
or perhaps look at some of the existing user management scripts on www.hotscripts.com
Philw
Newbie
Posts: 3
Registered: ‎08-06-2008

Re: .htaccess in ccgi space

Thank 🙂