.htaccess/pw protect on certain pages with Indexhibit

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
kwilde
Forum Newbie
Posts: 1
Joined: Thu Jul 02, 2009 1:36 pm

.htaccess/pw protect on certain pages with Indexhibit

Post by kwilde »

Apologies in advance if this is a dense question, I am just slowly learning about PHP by hacking away at other PHP-based CMS.

I am using Indexhibit to set up a website and it uses an index.php to display all the content, i.e. any one page appears as "index.php?/page/." I want to password protect just one page. I successfully set up a .htaccess where I can password protect every page that uses index.php by including the following in the .htaccess like so:

<Files "index.php">
Require valid-user
</Files>

Is is possible to restrict just one page, i.e.

<Files "index.php?/page/">
Require valid-user
</Files>

When I type it that way, it has no effect. Am I missing something or is am I totally misinformed by thinking this is possible?
Post Reply