![]() |
|
.httaccess solution? - 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: .httaccess solution? (/thread-2147.html) |
.httaccess solution? - radex7 - 2008-01-26 Hi, Besides updating the path to my gallery I noticed that other rewriting rules were directing php functions to folder called "zen". There is no folder called "zen". Might have been in previous editions, though. I changed each instance of "zen" to current "zp-core" and VOILA! It works. Cruft free images, heck, IMAGES - I can finally see them! I am happy. Here is a copy of my updated file for your viewing pleasure: ` htaccess file for zenphotoNOTE: Change the RewriteBase below to the absolute path to your zenphoto directory.RewriteEngine On !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!!This is my re-written version!RewriteBase /gallery RewriteRule ^admin/?$ zp-core/admin.php [R,L] RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule ^.*$ - [R,L] RewriteRule index.php$ index.php [L,QSA] RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA] RewriteRule ^page/([A-Za-z0-9-_]+)/?$ index.php?p=$1 [L,QSA] RewriteRule ^(.*)/page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA] RewriteRule ^(.*)/image/(thumb|[0-9]{1,4})/([^/]+)$ zp-core/i.php?a=$1&i=$3&s=$2 [L,QSA] RewriteRule ^(.*)/image/([^/]+)$ zp-core/i.php?a=$1&i=$2 [L,QSA] Catch-all - everything else gets handled in PHP for compatibility.RewriteRule ^(.*)/?$ index.php?album=$1 [L,QSA] ` Maybe that will help... .httaccess solution? - sbillard - 2008-01-26 You should update your .htaccess file to the one that came with the release. There are a number of changes to it to support such things as rewrite rules for search. Whenever you load a new release of zenphoto, upload ALL the files that are included. Otherwise who knows what might go wrong! .httaccess solution? - radex7 - 2008-01-26 I agree; .htaccess on macs is invisible without tinkering with terminal, and I did not even think of looking for it... .httaccess solution? - acrylian - 2008-01-27 Radex7: I am mac user myself and you don't need to use the terminal if you are uncomfortable with it (as I am). You can just use a program like Invisibility Toggler (http://www.macupdate.com/info.php/id/24632/invisibility-toggler) or an FTP-clien to view the folders with invisible files. You should use FTP to upload anyway...:-) .httaccess solution? - radex7 - 2008-01-27 You are right, acrylian, I found it with dreamweaver... I use Cyberduck for ftp access but I cannot find function to show files and folders on my computer, I just drag and drop. .httaccess solution? - acrylian - 2008-01-28 Because of this one window principle I never got used to Cyberduck. I prefer Transmit instead (not free though). .httaccess solution? - slidenby - 2008-01-30 On the Mac, you can use a program called TextMate to view and edit .htaccess files. .httaccess solution? - acrylian - 2008-01-30 Then I would recommend TextWrangler instead that is a very good, slim editor with syntax highlighting. And it's free...:-): |