Since I want every thing nice and goog looking, I definitely want to use the Permalink feature for both WordPress and the PhotoPress albums. Configuring Permalinks for WordPress is no big deal, because you only have to specify the structure of the generated links using the blog’s admin tool under Options -> Permalinks. WordPress can create the needed rewrite rules to make the links function and store them in the .htaccess file in your blog’s root folder if this file is writable for the Webserver.
PhotoPress needs a little more effort to get this feature to work. PhotoPress by default uses Querystring parameters in the links to pass the selected album, category and/or image name. In WordPress’ amdin tool under Options -> Photopress you can change this parameters. To use Photopress with Permalinks you set the
Album name to eg. album,
Album postfix to eg. / and
Category postfix to eg.
/category/. Photopress will now generate links to a Category like this
/blog/album/category/YourCategory and links to an image look like this
/blog/album/your_image.jpg. To make these links work you need to edit your .htaccess file in your blog’s root folder manually. If the file is writable by the webserver you can use WordPerss’ admin tool (Manage -> Files) to edit the file. For the mentioned example the following lines must be added:
RewriteRule ^album/category/(.*)$ /blog/index.php?pp_album=1&pp_cat=$1 [QSA,L]
RewriteRule ^album/(.*)$ /blog/index.php?pp_album=1&pp_image=$1 [QSA,L]
RewriteRule ^album/$ /blog/index.php?pp_album=1 [QSA,L]
RewriteRule ^album$ /blog/index.php?pp_album=1 [QSA,L]