Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: sef_urls IIS rewrite rule  (Read 5731 times)

0 Members and 1 Guest are viewing this topic.

odo_cd

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
sef_urls IIS rewrite rule
« on: February 05, 2007, 11:53:08 am »

testing on win 2003 iis6

demo:
http://www.odo.com.cn/album/

server in China, maybe slow

###cpg
RewriteRule ^(.*)/index-([0-9]+)\.html$ $1/index\.php\?cat=$2
RewriteRule ^(.*)/index-([0-9]+)-page-([0-9]+)\.html$ $1/index\.php\?cat=$2&page=$3
RewriteRule ^(.*)/thumbnails-([a-z0-9]+)-([\-]?[0-9]+)\.html$ $1/thumbnails\.php\?album=$2&cat=$3
RewriteRule ^(.*)/thumbnails-([a-z0-9]+)-page-([0-9]+)\.html$ $1/thumbnails\.php\?album=$2&page=$3
RewriteRule ^(.*)/thumbnails-([a-z0-9]+)-([\-]?[0-9]+)-page-([0-9]+)\.html$ $1/thumbnails\.php\?album=$2&cat=$3&page=$4
RewriteRule ^(.*)/thumbnails-([0-9a-z]+)\.html$ $1/thumbnails\.php\?album=$2
RewriteRule ^(.*)/thumbnails-search-(.+)\.html$ $1/thumbnails\.php\?album=search&search=$2
RewriteRule ^(.*)/displayimage-([a-z0-9]+)-([\-]?[0-9]+)-([\-]?[0-9]+)\.html$ $1/displayimage\.php\?album=$2&cat=$3&pos=$4
RewriteRule ^(.*)/displayimage-([0-9]+)\.html$ $1/displayimage\.php\?pos=-$2
RewriteRule ^(.*)/displayimage-([a-z0-9]+)-([\-]?[0-9]+)\.html$ $1/displayimage\.php\?album=$2&pos=$3
RewriteRule ^(.*)/slideshow-([0-9]+)-([\-]?[0-9]+)-([0-9]+)\.html$ $1/displayimage\.php\?album=$2&pid=$3&slideshow=$4
RewriteRule ^(.*)/slideshow-([a-z]+)-([\-]?[0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/displayimage\.php\?album=$2&cat=$3&pid=$4&slideshow=$5
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: sef_urls IIS rewrite rule
« Reply #1 on: February 05, 2007, 04:48:37 pm »

Ok. And your question is ? Rewrite seems to be working.
Logged

odo_cd

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: sef_urls IIS rewrite rule
« Reply #2 on: February 05, 2007, 06:21:54 pm »

Ok. And your question is ? Rewrite seems to be working.

yes it's working

I just put here for sharing :D
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 20 queries.