WPG2 + URL Rewrite + virtual domains = FAIL
morbaq
Joined: 2008-02-16
Posts: 8 |
Posted: Sat, 2008-02-16 20:14 |
Hi, I've searched the forums and the net for any answers to this, but can't simply find anything. So here's the deal: * I've got my Wordpress blog set up at blog.fredrikbostrom.net A perfectly normal setup that works fine otherwise. The only problem is that I've got url rewriting in both the blog (with urls like 2008/02/08/foobar) and my gallery (with Show item rule as %path%). Now this makes the wpg2 to go bonkers on any blog page but the main page, both sidebar images and blog images. For example, on the page http://blog.fredrikbostrom.net/2007/07/14/its-a-pie where I've got a blog photo that yields the following error: Quote:
Fatal G2 error ... and about 20 more references. Now this is surely because wpg2 somehow interprets the /2007/... as a rewritten url for the gallery, but why? Since the blog and the gallery are under different virtual domains, their rewrite rules shouldn't interfere with each other, right? The problem is at least resolved if I * turn off url rewriting in gallery but none of these options are good for me. I'd like to keep my blog and galleru urls as simple as possible (gallery.fredrikbostrom.net/v/parties would just look awkward). Is there any other way to fix this? Grateful for any hints. I've just upgraded to Wordpress 2.3.3, Gallery2 2.2.4 and wpg2 3.0.2, but the same problem occurred with the older versions as well. |
|
Posts: 1378
morbaq,
The error you are getting is because G2 rewrite module cannot work out what is the underlying path. Simply put the lack of the /v/ means your URL's are being blended into Wordpress URL's and that is resulting in this error..
Based on my understanding of the Gallery2 rewrite module, the module which is flagging your error, you have to have some kind of /v/ in the rule, /v/ can however be changed, in my case I prefix the name of my wpg2 page /photos/ infront of my g2 rewrite rules so my show item looks like /photos/
Sorry 0I cannot help you that much more as I really do not have that detailed understanding behind the G2 rewrite module.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Thanks for the quick reply. This is what I feared. It's only kind of redundant to have a path /photos/ (or whatever) before every gallery path since the subdomain already denotes the 'photo' context. I mean, http://gallery.fredrikbostrom.net/photos just looks stupid
But I guess I'll have to do it like this for now. Otherwise the plugin is awesome, thanks!
Posts: 1378
It is an interesting point and the issue could be within the Gallery2 Rewrite module and how it generates the rules, having a different subdomain should ensure the rules are unique enough..
Try a post in the Gallery2 Support forum, referencing this thread and see if a Gallery2 developer may be able to come up with a more complete solution..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Thanks, I'll do that.
Discussion continued here.
Posts: 1378
morbaq,
I did some testing last night of the show item rule and I was able to remove the /v/ from it.. I suspect you might have some subset of some other issue which is causing your G2 rewrites to fail.
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo
Posts: 8
Oh, that good news... I guess. I don't suppose you have any ideas of what is causing the problem then...
Well, let's see if anyone at the Gallery2 support forum comes up with anything. Thanks for bothering, I appreciate it!