Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- #inherit from root htaccess and append at last
- RewriteOptions inherit
- ##/**************************************************
- ## Coppermine 1.5.x Plugin - sef_urls
- ## *************************************************
- ## Copyright (c) 2003-2007 Coppermine Dev Team
- ## *************************************************
- ## 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 3 of the License, or
- ## (at your option) any later version.
- ## ********************************************
- ## $HeadURL$
- ## $Revision$
- ## $LastChangedBy$
- ## $Date$
- ## **************************************************/
- #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 /gallery
- #
- # Language translation
- #
- RewriteRule cerca.html(.*) search.php$1 [QSA,NC,L]
- RewriteRule contatti.html(.*) contact.php$1 [QSA,NC,L]
- RewriteRule (.*)migliore(.*) $1toprated$2 [QSA,NC,L]
- RewriteRule (.*)popolari(.*) $1topn$2 [QSA,NC,L]
- RewriteRule (.*)osservazionedi(.*) $1lastcomby$2 [QSA,NC,L]
- RewriteRule (.*)osservazione(.*) $1lastcom$2 [QSA,NC,L]
- RewriteRule (.*)pagina(.*) $1page$2 [QSA,NC,L]
- RewriteRule (.*)listautenti(.*) $1usermgr$2 [QSA,NC,L]
- RewriteRule (.*)profilo(.*) $1profile$2 [QSA,NC,L]
- RewriteRule (.*)miniature(.*) $1thumbnails$2 [QSA,NC,L]
- RewriteRule (.*)mostra(.*) $1displayimage$2 [QSA,NC,L]
- RewriteRule (.*)novitadi(.*) $1lastupby$2 [QSA,NC,L]
- RewriteRule (.*)novita(.*) $1lastup$2 [QSA,NC,L]
- RewriteRule (.*)cerca(.*) $1search$2 [QSA,NC,L]
- RewriteRule (.*)top(.*) $1top_display_media$2 [QSA,NC,L]
- #
- # Rewrite usrmgr urls
- #
- RewriteRule usermgr-page-([0-9]*).html(.*) usermgr.php?page=$1$2 [QSA,NC,L]
- RewriteRule usermgr.html(.*) usermgr.php$1 [QSA,NC,L]
- #
- # Rewrite index urls
- #
- RewriteRule index.html(.*) index.php$1 [QSA,NC,L]
- RewriteRule index-([0-9]*)\.html(.*) index.php?cat=$1$2 [QSA,NC,L]
- RewriteRule index-([0-9]*)-page-([0-9]*)\.html(.*) index.php?cat=$1&page=$2$3 [QSA,NC,L]
- #
- # Rewrite thumbnail urls
- #
- RewriteRule thumbnails-lastupby-([0-9]+)\.html(.*) thumbnails.php?album=lastupby&uid=$1$2 [QSA,NC,L]
- RewriteRule thumbnails-lastcomby-([0-9]+)\.html(.*) thumbnails.php?album=lastcomby&uid=$1$2 [QSA,NC,L]
- RewriteRule thumbnails-lastupby-([0-9]+)-([0-9]+)-page-([0-9]+)\.html(.*) thumbnails.php?album=lastupby&cat=$1&uid=$2&page=$3$4 [QSA,NC,L]
- RewriteRule thumbnails-lastcomby-([0-9]+)-([0-9]+)-page-([0-9]+)\.html(.*) thumbnails.php?album=lastcomby&cat=$1&uid=$2&page=$3$4 [QSA,NC,L]
- RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)\.html(.*) thumbnails.php?album=$1&cat=$2$3 [QSA,NC,L]
- RewriteRule thumbnails-page-([0-9]*)-([a-z0-9]*).*\.html(.*) thumbnails.php?album=$2&page=$1$3 [QSA,NC,L]
- RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)-page-([0-9]*)\.html(.*) thumbnails.php?album=$1&cat=$2&page=$3$4 [QSA,NC,L]
- RewriteRule thumbnails-search-keyword-(.*)\.html(.*) thumbnails.php?album=search&keywords=on&search=$1$2 [QSA,NC,L]
- RewriteRule thumbnails-search-(.*)\.html(.*) thumbnails.php?album=search&search=$1$2 [QSA,NC,L]
- RewriteRule thumbnails-([0-9a-z]*).*\.html(.*) thumbnails.php?album=$1$2 [QSA,NC,L]
- #
- # Rewrite displayimage urls
- #
- RewriteRule displayimage-lastcom-([\-]?[0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-page-([\-]?[0-9]+).html(.*) displayimage.php?album=lastcom&cat=$1&pid=$2&msg_id=$3&page=$4$5 [QSA,NC,L]
- RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html(.*) displayimage.php?album=$1&cat=$2&pid=$3&uid=$4&msg_id=$5&page=$6$7 [QSA,NC,L]
- RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html(.*) displayimage.php?album=$1&cat=$2&pid=$3&uid=$4$5 [QSA,NC,L]
- RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+).*\.html(.*) displayimage.php?album=$1&cat=$2&pid=$3$4 [QSA,NC,L]
- RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+).*\.html(.*) displayimage.php?album=$1&pid=$2$3 [QSA,NC,L]
- RewriteRule displayimage-([0-9]+).*\.html(.*) displayimage.php?pid=$1$2 [QSA,NC,L]
- #
- # Rewrite users profiles
- #
- RewriteRule profile-op-([a-z0-9_]+)\.html(.*) profile.php?op=$1 [QSA,NC,L]
- RewriteRule profile-([0-9]+).*\.html(.*) profile.php?uid=$1$2 [QSA,NC,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement