WordPress.org

Ready to get started?Download WordPress

Forums

Integrating SPG in a subfolder (4 posts)

  1. flakkito
    Member
    Posted 9 years ago #

    Hello, I am banging my head on this problem and I dont know enough about htaccess to figure it out. I will try to be as specific as possible but am rather confused myself!!

    My site is setup using "categories" for the front page and "pages" for all else like this:

    home/
    media/music/
    media/lyrics/
    media/gallery/
    about/
    contact/

    I am trying to incorporate SPG gallery into the media/gallery/ folder. The problem is the additional directory (media).

    what i'd like to do if its possible is have the spg gallery load when gallery is selected. At the moment, the gallery page that loads is the page i created within wordpress.

    If I create a "real"media folder and put the gallery folder in it so its like:

    media/gallery/

    then my other media pages do not work as it conflicts with the virtual site structure. I figure this could be defeated using htaccess but am not sure how to proceed or if its the best way.

    I searched to no avail because all other spg installations seem to use : me.com/gallery/ or me.com/wp/gallery/ and what i need is : me.com/media/gallery/

    the ht access is like this:

    DirectoryIndex sp_index.php

    RewriteEngine On
    RewriteBase /gallery/

    RewriteRule ^folder/(.*) sp_index.php?dir=./$1
    RewriteRule ^file/(.*) sp_index.php?file=./$1
    RewriteRule ^thumb/(.*) sp_getthumb.php?source=$1

    is there something i could add here that would make spg perform as if there were an actual "real" folder titled media but at the same time not conflict with the "virtual" site structure wordpress is using?

    btw, i am using wp 1.5.1.3 and spg for wp.

    Thanks in advance,

    Rob

  2. zz85
    Member
    Posted 9 years ago #

    sorry I do not really understand your situation here, what i know for now is that as long all your gallery in under spg folder, they should be able to load.

    As for masking the real url, url rewrites should work, but I don't think you have to use RewriteBase /gallery/

  3. Kafkaesqui

    Posted 9 years ago #

    You could also try the Redirectify plugin, found here:

    http://redalt.com/downloads/

  4. flakkito
    Member
    Posted 9 years ago #

    Thank you zz85 and Kafkaesqui for your suggestions. I will try the redirectify plugin and see whats up. For now i just went for a more basic setup:

    home
    music
    lyrics
    gallery
    contact

    instead of

    home
    media
    ----music
    ----lyrics
    ----gallery
    contact

    If I discover a way to eventually make this work I will post the solution here.

    Peace,

    Rob

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags