ZenphotoCMS Forum
404 error after moving zp directory - 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: 404 error after moving zp directory (/thread-4312.html)



404 error after moving zp directory - baronrobert - 2008-12-24

Hi,

I had to move my actual zenphoto website in another directory. Previously, zenphoto was installed in the root website directory http://myweb/ (or /data/www/private/ in filesystem 'notation').
Now, i have to move it in the "zen" subdirectory. I did it, and modify `/data/www/private/.htaccess` to edit the `RewriteBase` var. I ran after setup.php.
Then each time I want to access an album, the webserver return 404 error.
When i check the link with the web browser, it show me
http://myweb/zen/Family
instead of
http://myweb/zen/albums/family

I try to edit too the zp-config.php and modify the `WEBPATH` and `SERVERPATH`, but nothing good happen too.
Where and what i have to edit to set zenphoto aware that his new dir is no more "/" but "/zen/" ?

thanks.


404 error after moving zp directory - acrylian - 2008-12-24

Actually you should just run `zp-core/setup.php`. This should take care of the htaccess change.


404 error after moving zp directory - baronrobert - 2008-12-25

I do it, and it does not seem to change anything.