Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
.htaccess in ccgi space
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: .htaccess in ccgi space
.htaccess in ccgi space
08-06-2008 12:16 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
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
Message 1 of 5
(2,405 Views)
4 REPLIES 4
Re: .htaccess in ccgi space
08-06-2008 3:39 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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.
Message 2 of 5
(588 Views)
Re: .htaccess in ccgi space
08-06-2008 3:51 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
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
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
Message 3 of 5
(588 Views)
Re: .htaccess in ccgi space
08-06-2008 9:42 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Start writing
or perhaps look at some of the existing user management scripts on www.hotscripts.com
or perhaps look at some of the existing user management scripts on www.hotscripts.com
Message 4 of 5
(588 Views)
Re: .htaccess in ccgi space
09-06-2008 9:14 AM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Thank 🙂
Message 5 of 5
(588 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Everything else
- :
- Re: .htaccess in ccgi space