East of the Sun, West of the Moon


New static pages

Filed under: Dutch,Projects,Site — Erwin @ 2:38 pm

I’ve converted a few more pages from my homepage into static pages on the blog. They are the Klasgenoten S.S.G. pages (3 in total), which is 100% Dutch content.

The two sub-pages contain embedded PHP, so I was glad I had that sorted out a while ago already for the spam statistics page. It worked pretty flawlessly, yay! The trickiest part was the third page which in its original form was a set of album pages, basically. For this I added a custom RewriteRule to the .htaccess file:

RewriteRule ^(the-projects/klasgenoten-ssg/klasgenoten-ssg-album)/offset/([0-9]+)/?$ /index.php?pagename=$1&album_offset=$2 [QSA,L]

The album_offset parameter I can then use in the embedded PHP of the page (as $_GET[“album_offset”]) and voila, browsable album pages once again.

Back to work, now.

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress