Hi guys. I successfully upgraded this afternoon to the latest gallery2 release (2.1 from 2.0-something), and am now having an issue with URL rewrites for the "Site Admin" section. Under "Site Admin", all the links on the left give me the same page ~ "General Settings", however I cannot work out what has changed regarding the config. /admin/?g2_subView=core.AdminMaintenance gives me the exact same as /admin/?g2_subView=core.AdminModules etc etc. Has anyone here (with gallery 2.1) and URL rewrites also seen this problem in the Admin section, and possibly got a solution to it? I'm still using the "old" rewrite rules (slightly changed due to path differences) as http://forum.lighttpd.net/topic/47 : url.rewrite = ( "^/v/(\?.+|\ .)?$" => "/main.php?g2_view=core.ShowItem", "^/admin/(\?.+|\ .)?$" => "/main.php?g2_view=core.SiteAdmin", "^/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$" => "/main.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber=$2&$3", "^/v/([^?]+)(\?|\ )?(.*)$" => "/main.php?g2_view=core.ShowItem&g2_path=$1&$3" ) The sample .htaccess seems the same I believe as the above URL with the exception of each of the "RewriteCond %{REQUEST_FILENAME}" lines ending with a "$" after each line. I'm not sure if this is a question for Gallery2 or Lighttpd, but seeing as they support apache I think this is the place to start ;-) Thanks in advance.
on 24.03.2006 17:42
on 04.04.2006 10:40
Ralph Slooten wrote: > url.rewrite = ( > "^/v/(\?.+|\ .)?$" => "/main.php?g2_view=core.ShowItem", > "^/admin/(\?.+|\ .)?$" => "/main.php?g2_view=core.SiteAdmin", > "^/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$" => > "/main.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber=$2&$3", > "^/v/([^?]+)(\?|\ )?(.*)$" => > "/main.php?g2_view=core.ShowItem&g2_path=$1&$3" > ) url.rewrite = ( "^/gallery2/v/(\?.+|\ .)?$" => "/gallery2/main.php?g2_view=core.ShowItem", "^/gallery2/admin/.(.*)" => "/gallery2/main.php?g2_view=core.SiteAdmin&$1", "^/gallery2/d/([0-9]+)-([0-9]+)/([^\/]+)(\?|\ )?(.*)$" => "/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=$1&g2_serialNumber=$2&$3", "^/gallery2/v/([^?]+)(\?|\ )?(.*)$" => "/gallery2/main.php?g2_view=core.ShowItem&g2_path=$1&$3", "^/gallery2/c/add/(.*).html" => "/gallery2/main.php?g2_view=comment.AddComment&g2_itemId=$1", "^/gallery2/c/view/(.*).html" => "/gallery2/main.php?g2_view=comment.ShowAllComments&g2_itemId=$1" )
on 04.04.2006 11:02
Thank you! The admin (and the rest) section now works great.
on 19.06.2006 11:50
> Ralph Slooten wrote: > > url.rewrite = ( [..] > "^/admin/.(.*)" => > "/main.php?g2_view=core.SiteAdmin&$1", [..] > ) Hello, I am trying the rewrite for admin. May gallery is in the document root. It does not seem to work. Looks like a redirect loop. The rewrite form galleryskript is: http://mytld.tld/admin/main.php?g2_return=main.php&g2_returnName=album In the looks is something like this: 62.143.202.178 wmfuerwohnungslose.de - [19/Jun/2006:11:44:53 +0200] "GET /admin/?g2_return=main.php&g2_returnName=album HTTP/1.1" 302 0 "http://wmfuerwohnungslose.de/main.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4" 62.143.202.178 wmfuerwohnungslose.de - [19/Jun/2006:11:44:53 +0200] "GET /admin/main.php?g2_return=main.php&g2_returnName=album HTTP/1.1" 302 0 "http://wmfuerwohnungslose.de/main.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4" 62.143.202.178 wmfuerwohnungslose.de - [19/Jun/2006:11:44:53 +0200] "GET /admin/main.php?g2_return=main.php&g2_returnName=album HTTP/1.1" 302 0 "http://wmfuerwohnungslose.de/main.php" "Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; de; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4" and something around 20-30 repeats from a single request. Can somebody help?
on 21.06.2006 18:45
arghh. had to activate rewrite module... is there a way to get some more error messages/log from lighttpd?

