##  ********************************************
##  Coppermine Photo Gallery
##  ************************
##  Copyright (c) 2003-2005 Coppermine Dev Team
##  v1.1 originaly written by Gregory DEMAR
##
##  This program is free software; you can redistribute it and/or modify
##  it under the terms of the GNU General Public License as published by
##  the Free Software Foundation; either version 2 of the License, or
##  (at your option) any later version.
##  ********************************************
##  Coppermine version: 1.4.2
##  $Source: /cvsroot/coppermine/devel/plugins/sef_urls/ht.txt,v $
##  $Revision: 1.4 $
##  $Author: gaugau $
##  $Date: 2005/11/23 07:59:23 $
##  ********************************************

Options FollowSymLinks SymLinksIfOwnerMatch

RewriteEngine on

#  Uncomment the following line if your webserver's
#  URL is not directly related to physical file paths.
#  Update "YOUR_COPPERMINE_ROOT" (just / for root)

RewriteBase /votredossier

#
# Rewrite index urls
#
RewriteRule index-([0-9]*)\.html index.php?cat=$1 [NC]
RewriteRule index-([0-9]*)-([a-zA-z0-9_-ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ@°-]*)\.html index.php?cat=$1&nam=$2 [NC]
#
# Rewrite thumbnail urls
#
RewriteRule thumbnails-([a-z0-9]*)-([0-9_-]*)\.html thumbnails.php?album=$1&cat=$2 [NC]

RewriteRule s-([a-z0-9]*)-([0-9_-]*)-([0-9_-]*)\.html thumbnails.php?album=$1&cat=$2&page=$3 [NC]

RewriteRule thumbnails-([a-z0-9]*)-([a-zA-z0-9_-ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ@°-]*)\.html thumbnails.php?album=$1&nam=$2 [NC]

RewriteRule t-([a-z0-9]*)-([a-zA-z0-9_-ÀÁÂÃÄÅàáâãäåÒÓÔÕÖØòóôõöøÈÉÊËèéêëÇçÌÍÎÏìíîïÙÚÛÜùúûüÿÑñ@°-]*)\.html thumbnails.php?album=$1&search=$2 [NC]

RewriteRule pagethumb-([a-z0-9]+)-([0-9_-]*)-([a-z]*)\.html thumbnails.php?album=$1&page=$2&sort=$3 [NC]

RewriteRule album-([a-z0-9]+)-([a-z0-9_-]*)\.html thumbnails.php?album=$1&uid=$2 [NC]

RewriteRule pagethumb-([a-z0-9]+)-([0-9_-]*)\.html thumbnails.php?album=$1&page=$2 [NC]

RewriteRule thumbnails-([a-z0-9]*)\.html thumbnails.php?album=$1 [NC]


#
# Rewrite displayimage urls
#
RewriteRule photo-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&cat=$2&pos=$3 [NC]

RewriteRule photo-([a-z0-9]+)-([\-]?[0-9]+)\.html displayimage.php?album=$1&pos=$2 [NC]

RewriteRule photo-([\-]?[[0-9]*)\.html displayimage.php?pos=$1 [NC]