Guest User

htaccess coppermine

a guest
Oct 5th, 2013
40
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. RewriteEngine On
  2.  
  3. #inherit from root htaccess and append at last
  4. RewriteOptions inherit
  5.  
  6. ##/**************************************************
  7. ## Coppermine 1.5.x Plugin - sef_urls
  8. ## *************************************************
  9. ## Copyright (c) 2003-2007 Coppermine Dev Team
  10. ## *************************************************
  11. ## This program is free software; you can redistribute it and/or modify
  12. ## it under the terms of the GNU General Public License as published by
  13. ## the Free Software Foundation; either version 3 of the License, or
  14. ## (at your option) any later version.
  15. ## ********************************************
  16. ## $HeadURL$
  17. ## $Revision$
  18. ## $LastChangedBy$
  19. ## $Date$
  20. ## **************************************************/
  21.  
  22. #Options FollowSymLinks SymLinksIfOwnerMatch
  23.  
  24. # RewriteEngine on
  25.  
  26. # Uncomment the following line if your webserver's
  27. # URL is not directly related to physical file paths.
  28. # Update "YOUR_COPPERMINE_ROOT" (just / for root)
  29.  
  30. RewriteBase /gallery
  31.  
  32. #
  33. # Language translation
  34. #
  35.  
  36. RewriteRule cerca.html(.*) search.php$1 [QSA,NC,L]
  37.  
  38. RewriteRule contatti.html(.*) contact.php$1 [QSA,NC,L]
  39.  
  40. RewriteRule (.*)migliore(.*) $1toprated$2 [QSA,NC,L]
  41.  
  42. RewriteRule (.*)popolari(.*) $1topn$2 [QSA,NC,L]
  43.  
  44. RewriteRule (.*)osservazionedi(.*) $1lastcomby$2 [QSA,NC,L]
  45.  
  46. RewriteRule (.*)osservazione(.*) $1lastcom$2 [QSA,NC,L]
  47.  
  48. RewriteRule (.*)pagina(.*) $1page$2 [QSA,NC,L]
  49.  
  50. RewriteRule (.*)listautenti(.*) $1usermgr$2 [QSA,NC,L]
  51.  
  52. RewriteRule (.*)profilo(.*) $1profile$2 [QSA,NC,L]
  53.  
  54. RewriteRule (.*)miniature(.*) $1thumbnails$2 [QSA,NC,L]
  55.  
  56. RewriteRule (.*)mostra(.*) $1displayimage$2 [QSA,NC,L]
  57.  
  58. RewriteRule (.*)novitadi(.*) $1lastupby$2 [QSA,NC,L]
  59.  
  60. RewriteRule (.*)novita(.*) $1lastup$2 [QSA,NC,L]
  61.  
  62. RewriteRule (.*)cerca(.*) $1search$2 [QSA,NC,L]
  63.  
  64. RewriteRule (.*)top(.*) $1top_display_media$2 [QSA,NC,L]
  65.  
  66.  
  67. #
  68. # Rewrite usrmgr urls
  69. #
  70.  
  71. RewriteRule usermgr-page-([0-9]*).html(.*) usermgr.php?page=$1$2 [QSA,NC,L]
  72.  
  73. RewriteRule usermgr.html(.*) usermgr.php$1 [QSA,NC,L]
  74.  
  75. #
  76. # Rewrite index urls
  77. #
  78.  
  79. RewriteRule index.html(.*) index.php$1 [QSA,NC,L]
  80.  
  81. RewriteRule index-([0-9]*)\.html(.*) index.php?cat=$1$2 [QSA,NC,L]
  82.  
  83. RewriteRule index-([0-9]*)-page-([0-9]*)\.html(.*) index.php?cat=$1&page=$2$3 [QSA,NC,L]
  84.  
  85.  
  86. #
  87. # Rewrite thumbnail urls
  88. #
  89.  
  90. RewriteRule thumbnails-lastupby-([0-9]+)\.html(.*) thumbnails.php?album=lastupby&uid=$1$2 [QSA,NC,L]
  91.  
  92. RewriteRule thumbnails-lastcomby-([0-9]+)\.html(.*) thumbnails.php?album=lastcomby&uid=$1$2 [QSA,NC,L]
  93.  
  94. 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]
  95.  
  96. 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]
  97.  
  98. RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)\.html(.*) thumbnails.php?album=$1&cat=$2$3 [QSA,NC,L]
  99.  
  100. RewriteRule thumbnails-page-([0-9]*)-([a-z0-9]*).*\.html(.*) thumbnails.php?album=$2&page=$1$3 [QSA,NC,L]
  101.  
  102. RewriteRule thumbnails-([a-z0-9]*)-([\-]?[0-9]*)-page-([0-9]*)\.html(.*) thumbnails.php?album=$1&cat=$2&page=$3$4 [QSA,NC,L]
  103.  
  104. RewriteRule thumbnails-search-keyword-(.*)\.html(.*) thumbnails.php?album=search&keywords=on&search=$1$2 [QSA,NC,L]
  105.  
  106. RewriteRule thumbnails-search-(.*)\.html(.*) thumbnails.php?album=search&search=$1$2 [QSA,NC,L]
  107.  
  108. RewriteRule thumbnails-([0-9a-z]*).*\.html(.*) thumbnails.php?album=$1$2 [QSA,NC,L]
  109.  
  110.  
  111. #
  112. # Rewrite displayimage urls
  113. #
  114.  
  115. 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]
  116.  
  117. 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]
  118.  
  119. 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]
  120.  
  121. RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+).*\.html(.*) displayimage.php?album=$1&cat=$2&pid=$3$4 [QSA,NC,L]
  122.  
  123. RewriteRule displayimage-([a-z0-9]+)-([\-]?[0-9]+).*\.html(.*) displayimage.php?album=$1&pid=$2$3 [QSA,NC,L]
  124.  
  125. RewriteRule displayimage-([0-9]+).*\.html(.*) displayimage.php?pid=$1$2 [QSA,NC,L]
  126.  
  127.  
  128. #
  129. # Rewrite users profiles
  130. #
  131.  
  132. RewriteRule profile-op-([a-z0-9_]+)\.html(.*) profile.php?op=$1 [QSA,NC,L]
  133.  
  134. RewriteRule profile-([0-9]+).*\.html(.*) profile.php?uid=$1$2 [QSA,NC,L]
RAW Paste Data