Thread tagged as: Question, Problem, Gallery

Gallery Module Pretty URL's


I know this isn't a Perch issue but I'm having an issue setting up the Mod_rewrite pattern for the gallery module using albums. Although my pages work with the default htaccess I have an issue when I change try to reach the url of

This is my rules

# Page Rewrite --------------------------------------------------------------------------------------

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}.php -f
    RewriteRule ^gallery/album/([a-zA-Z0-9-]+)$ /gallery/album.php?s=$1 
    RewriteRule ^(.+)$ $1.php

Anyone managed to set this up successfully?


Andrew Cetnarskyj

Andrew Cetnarskyj 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is that everything? It looks ok to me at a glance.

What result do you get?