![]() |
|
Upgrade issues with .htaccess (I think) - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Upgrade issues with .htaccess (I think) (/thread-108.html) |
Upgrade issues with .htaccess (I think) - skinnyj - 2005-10-10 Hi, Will follow the lead of everyone by complimenting you on a great piece of software! However, when I upgraded to 0.9, i don't think the path detection stuff has worked properly on my server. My index.php now links to the galleries at http://tignes/ (for the Tignes photo album), whereas with 0.8 the link went to http://www.skinnyjimmy.com/skinnyphoto/tignes/ I am not that hot with .htaccess, but did change the rewrite base to /skinnyphoto (this is the directory which holds all the zenphoto files). Anyone have a clue, before I drop back to 0.8 in the morning? Upgrade issues with .htaccess (I think) - skinnyj - 2005-10-11 Ah, a bit of sleep gave me the clue - I ended up commenting out the define('WEBPATH' .... ) in the 'if' part of config php and manually defined it outside that section. All seems to work now! I didn't have to define the 'SERVERPATH' though - is something going to be horribly wrong anywhere? Upgrade issues with .htaccess (I think) - imbuez - 2005-10-11 Hi, do you think you could please post an example of your config file please. Upgrade issues with .htaccess (I think) - skinnyj - 2005-10-11 Hi Imbuez, the part I edited was this: `/ Do not edit below this line. / /**/ $_zp_conf_vars = $conf; if (basename($_SERVER['SCRIPT_FILENAME']) == "i.php" || basename($_SERVER['SCRIPT_FILENAME$ "admin.php") { define('SERVERPATH', dirname(dirname($_SERVER['SCRIPT_FILENAME']))); // define('WEBPATH', dirname(dirname($_SERVER['SCRIPT_NAME']))); } else { define('SERVERPATH', dirname($_SERVER['SCRIPT_FILENAME'])); // define('WEBPATH', dirname($_SERVER['SCRIPT_NAME'])); } define('WEBPATH', 'http://www.skinnyjimmy.com/skinnyphoto'); define('SERVERCACHE', SERVERPATH . "/cache"); define('WEBCACHE', WEBPATH . "/cache");` As you can see, i have just manually entered the path to my zenphoto directory as the webpath. I think the automatic discovery of the path isn't working? For me, anyway! Upgrade issues with .htaccess (I think) - imbuez - 2005-10-11 Thanks for the prompt response skinnyj. Unfortunately that's not working for me. Its seems to add an extra /zen/ into my path. When it should be 'http://www.imbuez.co.uk/gallery/zen/setup.php' I'm clueless to know whats going on here. Upgrade issues with .htaccess (I think) - skinnyj - 2005-10-11 What do you have defined in your .htaccess as the path? Upgrade issues with .htaccess (I think) - skinnyj - 2005-10-11 Imbuez, just a quick update - I was having trouble after updating to the stopdesign theme. All fixed by updating the WEBPATH above to read:
It might fix it for you if you put:
Upgrade issues with .htaccess (I think) - imbuez - 2005-10-12 Thank skinnyj i will give this a go when i get a free minute at work. My .htaccess path reads 'X:\xxxxxx\imbuez\imbuez.co.uk\gallery' I found this path with this little php Upgrade issues with .htaccess (I think) - imbuez - 2005-10-12 Hi skinnyj When i define the full path i get two instances and of the path in my address bar. Bummer ; ( Upgrade issues with .htaccess (I think) - skinnyj - 2005-10-12 Ah, interestingly, my .htaccess path reads:
which is not the filepath on the server. That might do it? Upgrade issues with .htaccess (I think) - Andy - 2005-10-16 Hi, I think I'm having the same problem. I also haven't been exactly sure what to put into .htaccess, for now I just have it as a /, which works better than some of the other alternatives that i've tried. I am going to try the config.php (although i am quite a novice at php). [edit]OK...i redid my config.php to direct it to the address of the site, and the site is working now except for the upload function. Upgrade issues with .htaccess (I think) - trisweb - 2005-10-17 There are problems with subdomains (or installing in the root folder) still, I'm working them out for the next release. |