<IfModule mod_rewrite.c> RewriteEngine On # !!! Change this to the web path (eg: http://www.example.com/photos --> /photos) !!! RewriteBase /photos RewriteCond %{REQUEST_FILENAME} -f [NC,OR] RewriteCond %{REQUEST_FILENAME} -d [NC] RewriteRule ^.*$ - [R,L] RewriteRule ^admin/?$ /zp-core/admin.php [R,L] RewriteRule ^page/([0-9]+)/?$ index.php?page=$1 [L,QSA] RewriteRule ^page/([A-Za-z0-9/-_]+)/?$ index.php?p=$1 [L,QSA] RewriteRule ^([^/]+)/?$ index.php?album=$1 [L,QSA] RewriteRule ^(.+/)page/([0-9]+)/?$ index.php?album=$1&page=$2 [L,QSA] RewriteRule ^page/gallery/([0-9]+)/?$ index.php?p=gallery&page=$1 [L,QSA] RewriteRule ^([^/]+)/image/(thumb|[0-9]{1,4})/([^///]+)$ /i.php?a=$1&i=$3&s=$2 [L,QSA] RewriteRule ^([^/]+)/image/([^///]+)$ albums/$1/$2 [L] RewriteRule ^([^/]+)/([^///]+)$ index.php?album=$1ℑ=$2 [L,QSA] </IfModule>
在搜索引擎找到一部分,但不完整,这个是完善过后的,加入目录下.htaccess即可。
注意要启用伪静态,请先进入Zenphoto后台启动rewrite选项 :P