Rev 229 Rev 240
1 # WHAT YOU NEED TO EDIT 1 # WHAT YOU NEED TO EDIT
2 # 2 #
3 # There are just two things you need to edit to make this file work on your 3 # There are just two things you need to edit to make this file work on your
4 # installation. On each of the two lines below starting 'RewriteRule' about 4 # installation. On each of the two lines below starting 'RewriteRule' about
5 # half way along the line there is a '/singapore/'. Change this to the full 5 # half way along the line there is a '/singapore/'. Change this to the full
6 # path to your installation (e.g. the bit after the .com, .org or whatever) 6 # path to your installation (e.g. the bit after the .com, .org or whatever)
7 # then rename this file to .htaccess and put it in the singapore root 7 # then rename this file to .htaccess and put it in the singapore root
8 # directory (the one containing thumb.php). Finally don't forget to turn on 8 # directory (the one containing thumb.php). Finally don't forget to turn on
9 # use_mod_rewrite and update the base_path in singapore.ini. Voila! 9 # use_mod_rewrite and update the base_path in singapore.ini. Voila!
10   10  
11   11  
12 Options +FollowSymlinks 12 Options +FollowSymlinks
13 RewriteEngine On 13 RewriteEngine On
14   14  
15 # rewrite galleries 15 # rewrite galleries
16 # url must end in / and gallery names must not contain commas (,) 16 # url must end in / and gallery names must not contain commas (,)
17 # example: /singapore/gallery/subgallery,20/ 17 # example: /singapore/gallery/subgallery,20/
18 # becomes: /singapore/index.php?gallery=gallery/subgallery&startat=20 18 # becomes: /singapore/index.php?gallery=gallery/subgallery&startat=20
19 RewriteRule ^([^,]+)(,([0-9]+))?/$ /singapore/index.php?gallery=$1&startat=$3&%{QUERY_STRING} [ne] 19 RewriteRule ^([^,]+)(,([0-9]+))?/$ /singapore/index.php?gallery=$1&startat=$3&%{QUERY_STRING} [ne]
20   20  
21 # rewrite images 21 # rewrite images
22 # do not rewrite requests to files and directories that really exist 22 # do not rewrite requests to files and directories that really exist
23 RewriteCond %{REQUEST_FILENAME} !-d 23 RewriteCond %{REQUEST_FILENAME} !-d
24 RewriteCond %{REQUEST_FILENAME} !-f 24 RewriteCond %{REQUEST_FILENAME} !-f
25   25  
26 # example: /singapore/gallery/subgallery/myphoto.jpeg 26 # example: /singapore/gallery/subgallery/myphoto.jpeg
27 # becomes: /singapore/index.php?gallery=gallery/subgallery&image=myphoto.jpeg 27 # becomes: /singapore/index.php?gallery=gallery/subgallery&image=myphoto.jpeg
28 RewriteRule ^((.*)/)?([^/]+\.(jpeg|jpg|jpe|png|gif|bmp|tif|tiff))$ /singapore/index.php?gallery=$2&image=$3&%{QUERY_STRING} [ne,nc] 28 RewriteRule ^((.*)/)?([^/]+\.(jpeg|jpg|jpe|png|gif|bmp|tif|tiff))$ /singapore/index.php?gallery=$2&image=$3&%{QUERY_STRING} [ne,nc]
29   29  
30 # rewrite feed.xml to the rss template 30 # rewrite feed.xml to the rss template
31 # example: /singapore/gallery/feed.xml 31 # example: /singapore/gallery/feed.xml
32 # becomes: /singapore/index.php?gallery=gallery&template=rss 32 # becomes: /singapore/index.php?gallery=gallery&template=rss
33 RewriteRule ^((.*)/)?feed.xml$ /singapore/index.php?gallery=$2&template=rss&%{QUERY_STRING} [ne] 33 RewriteRule ^((.*)/)?feed.xml$ /singapore/index.php?gallery=$2&template=rss&%{QUERY_STRING} [ne]