Jump to content

phpslideshow with .htaccess


annette50

Recommended Posts

Hi,

 

I recently installed the phpslideshow http://www.zinkwazi.com/wp/scripts in a protected directory for

some family pics. The directory is protected with an .htaccess file. When the slideshow is on auto there is a meta refresh to reload the next image. When the page refreshes, it diverts back to the login screen. When I remove the htaccess file, the auto slideshow works fine.

 

Can anyone suggest a solution? I can't do it! I have tried changing relative/absolute paths for the refresh but nothing works. (the

password is different for different people). I can post some code if required, but it seems to be quite well known!

 

Many thanks,

 

Annette

Link to comment
Share on other sites

  • 3 weeks later...

You probably don't want to use an htaccess file for that. The way it redirects you, will force the htaccess file to prompt you every time the page refreshes. You could probably use a basic authentication script instead. since the scipt they use that loads the photos is phpslideshow.php you could just use an include at that php file to load an authentication script that checks if they have a cookie set. If they do it'll show the pages and if the pages refresh it'll see the cookie is still there so no problems. If they havn't logged in, then all they will see is a login box. I found one recently on hotscripts.com that worked real well.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.