View Single Post
Old 06-15-2004, 05:32 PM   #2 (permalink)
cthulu23
Banned
 
cthulu23's Avatar
 
Hmmm...although I've never used mod_rewrite, it looks like it shouldn't be too hard if you're familiar with regular expressions. Here's some sample code for the .htaccess file that may or may not work, but might point you in the right direction:

RewriteEngine on
RewriteLog logs/rewrite
RewriteLogLevel 9
RewriteRule ^/gallery/([0-9+])/([0-9+])$ /gallery.php?id=$1&pic=$2

The log level of 9 is excessive (use 1 or 2, if any), but will help you figure out why things are working the way they are.

Does the regexp make sense to you or should I explain what it's doing?
cthulu23 is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73