Not signed in (Sign In)

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

    •  
      CommentAuthormemic.a
    • CommentTimeNov 27th 2008
     
    Hi,

    I moved my plogger gallery to another host and the Cruft-Free URLs don't work now!!
    But the strange thing is that the .htacces file is OK.
    Because when I write in the browser www.mysite.com/collection/album/name-of-picture/ it display the picture correctly but all the links in are like this www.mysite.com/index.php?level=album&id=xx....

    Why plogger is not creating the cruft-free urls???
    •  
      CommentAuthorkimparsell
    • CommentTimeNov 27th 2008
     
    First, does your new webhost have mod_rewrite enabled? If they don't, then the clean URLs won't work.

    If they do have it enabled, try going to Options and turn them off, then back on again to regenerate the rewrite rules in the .htaccess file.
    •  
      CommentAuthormemic.a
    • CommentTimeNov 27th 2008
     
    The mod_rewrite is enabled because if I write manually in the browser an url like this it works: www.mysite.com/collection/album/name-of-picture/
    but the urls generated by ploger are like this .../index.php?level=album&id=xx
    I tried to turn it on-off 3-4 times in options but don't work, any other ideas?

    P.S I have also another script in separated folder that works with mode_rewrite without problems.
    •  
      CommentAuthorkimparsell
    • CommentTimeNov 27th 2008
     
    Trying turning off the clean URLs in the other script, then test your gallery again with clean URLs enabled. The rewrite rules for the other program could be interfering with the Plogger rules.
    •  
      CommentAuthormemic.a
    • CommentTimeNov 28th 2008 edited
     
    Now it's OK,
    I edited the plog-load_config.php because for some reason it turned off the cruft-free urls.
    I changed

    $config["embedded"] = 0;

    // try to figure out whether we are embedded (for example running from Wordpress)
    // on windows/apache $_SERVER['PATH_TRANSLATED'] uses "/" for directory separators,
    // __FILE__ has them the other way, realpath takes care of that.
    if (dirname(__FILE__) != dirname(realpath($_SERVER["PATH_TRANSLATED"])) && strpos($_SERVER["PATH_TRANSLATED"],"admin") === false) {
    $config["embedded"] = 1;
    // disable our own cruft-free urls, because the URL has already been processed
    // by WordPress
    $config["use_mod_rewrite"] = 0;
    } else {
    // if mod_rewrite is on, make sure to remove the file basename
    if ($config["use_mod_rewrite"] == 1) {
    $config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/";
    }
    }

    into
    $config["embedded"] = 0;

    if ($config["use_mod_rewrite"] == 1)
    $config["baseurl"] = "http://".$_SERVER["HTTP_HOST"]. substr($_SERVER["PHP_SELF"],0,strrpos($_SERVER["PHP_SELF"],"/")) . "/";


    I use plogger from its folder and it's ok that $config["embedded"] = 0;
    Thankful People: sgsuneel
    • CommentAuthorwhimper
    • CommentTimeDec 18th 2008
     
    thnx thnx thnxxxx!!!!
    thank u very much bro ;)