![]() |
|
.htaccess changes - 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: .htaccess changes (/thread-10617.html) |
.htaccess changes - pvankempen - 2012-11-28 I am a exe developer, not a web developer, so am not used to working with htaccess files. For about 2 months, during our spare time, my wife and I were developing her site (she was adding the pictures and text, I was tweaking the php). During that time, the main htaccess file (at same sub-directory level as zp_data and themes) contained "RewriteBase /~pixmixca/photos" and we accessed all the pages as admin from 199.16.152.234/~pixmixca/photos/. When we went live a week ago, the pages were not working and so our ISP host changed the line in the htaccess file to: "RewriteBase /photos". Now, when we (or the public) connect, all the pages work. But, of course, neither the unpublished items nor the admin menu show. We can still access http://199.16.152.234/~pixmixca/photos/, but whenever we click anywhere from there (to an album, page, etc), we get a 404 error - for example: "404 Not Found The server can not find the requested page: 199.16.152.234/~pixmixca/photos/page/contact (port 80)". We would like to view various pages and images without incrementing the hit counters. And we would like to try creating a dynamic album. For both, we need to be able to view the site as admin. I'm sure a simple change to the htaccess file is all that is needed, but I could not figure what, even after reading everything I could find related to htaccess in the user guide and the forum. Any hints at pointing me in the right direction would be appreciated. .htaccess changes - acrylian - 2012-11-28 The rewrite base is important. Just re-run the setup script to fix that for you. If it is 199.16.152.234/~pixmixca/photos/ the rewrite base must be /~pixmixca/photos/ |