Not signed in (Sign In)

Vanilla 1.1.10 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthorjcaines
    • CommentTimeAug 9th 2007
     
    Hi,
    I have a small glitch. I have a static HTM page as a basic intro page for a site http://www.patfordphotography.com/index.htm
    The problem is that once in the gallery, if i leave the .htaccess file (as shown below) to give priority to the index.htm file, all of the gallery links ignore the gallery and lead back to the static index.htm file....the web address above has the gallery working but only because i disabled the .htaccess file...i just need the index.htm to come up first and then link to the stand alone gallery.

    I am using a .htaccess file with the following code in it (I have disabled it temporarily so that the gallery will stop linking back to the index.htm file)
    DirectoryIndex index.htm index.php

    Does anyone have any thoughts on how to do this? I have searched the forum high and low and can't find anything on this.

    Thanks,
    John Caines
    • CommentAuthorjammindice
    • CommentTimeAug 10th 2007
     
    I believe you are not understanding how the .htaccess DirectoryIndex works.

    The DirectoryIndex specifies in which order to look for files if a file is not specifically linked.

    for example if i typed in www.domain.com/stuff i don't specify a file just a folder so then apache looks into the .htaccess file to see if a directoryindex statement is in there. If so then it tries to load the first file referenced, if it can't load the first file it will try the second, third, etc...

    you can read all about it from the Apache website if you want the index to be a splash page then you could do a timed redirect, but i'm not sure exactly what you want to accomplish. If you just put the gallery in a different folder and link to it from your main page it should work just fine and i think that's pretty much how 90% of people do it.
    • CommentAuthorjcaines
    • CommentTimeAug 10th 2007
     
    Hi jammindice - thanks for the reply :-)

    okay...I think I understand how the directoryindex works but since my VPS always puts index.php as the primary followed by the .htm i put the index.htm first in the .htaccess file - basically, I want a static htm page to link to the gallery. I installed the gallery to the root folder though so maybe that's why it is pushing all of the gallery links back to the index.htm file when I activate the .htaccess file.

    I didn't realize I should have installed the gallery to a subfolder off of the root. So do you know if I can just move the gallery or do I need to reinstall it and repopulate it again? and if i do that, you're saying i should be able to link to the gallery in a subfolder and the gallery won't push the user back to the index.htm page?

    Thanks again for your reply!
    • CommentAuthorjammindice
    • CommentTimeAug 10th 2007
     
    Yep moving the gallery to a sub folder is the way to go. You should be able to just create a folder and move everything to that folder, you should probably just run the _upgrade.php just to make sure all the configuration settings are up-to-date.

    then just link it like you did just add the new folder in the link or create a new php page in your root directory and integrate your gallery.
    • CommentAuthorjcaines
    • CommentTimeAug 10th 2007
     
    Thanks! It worked like a charm! I appreciate it. Just did a 'drag-n-drop' into a new folder and ran the _upgrade.php file...had to reassign the template again but no big deal there. ;-)
    John
    • CommentAuthorjammindice
    • CommentTimeAug 10th 2007
     
    glad to help, have any other questions let us know.