URL write module for G2 + WPG2

dennys
dennys's picture

Joined: 2003-08-24
Posts: 32
Posted: Sat, 2005-09-03 15:51

I use WPG2 1.0beta to integrate G2 and Wordpress, everything is ok. (Rewrite module of G2 is disabled now.)

But when I tried to enable URL rewrite mode, I got a problem. The following is my procedure.
1. Connect to http://localhost/wordpress/wp-gallery2.php (Both embbed image and link are ok.)
2. Click Site Admin -> Modules -> Active URL rewrite
3. Click URL Rewrite -> Setup -> input Embedded setup -> Save
4. Click URL Rewrite -> Rules -> Save
5. Click test and successful
6. Connect to http://localhost/wordpress/, but the image and link are broken. This is the generated HTML source:

<a href="http://localhost/wordpress/v/2004_ski/dennys_ski2.jpg.html" >
<img src="http://localhost/wordpress/d/15-2/dennys_ski2.jpg?g2_GALLERYSID=dfa462df24ca5764d32ac14e1b98568f" width="150" height="113" class="giThumbnail" alt="dennys_ski2" longdesc=""/>

I think the problem is the url should be "http://localhost/gallery2/...", but it's "http://localhost/wordpress/...". Did I make any mistake in the configuration?

WGP2 Configuration:

Relative Gallery2 Path: "../gallery2/"
Embed Gallery2 Page Name: "wp-gallery2.php"
Path from web document root: "wordpress/"

Embedded Setup:

Htaccess path: "D:\NetWork\Apache\Apache2\htdocs\wordpress"
Public path: "http://localhost/wordpress/"

ps: I also try "http://localhost/gallery2/" for public path, but the result is the same.

Directory structure:

Apache root directory: "D:\NetWork\Apache\Apache2\htdocs\"
Wordpress: "D:\NetWork\Apache\Apache2\htdocs\wordpress"
Gallery2: "D:\NetWork\Apache\Apache2\htdocs\gallery2"

Software:

Gallery 2 RC2
Wordpress 1.5.2
WGP2 1.0beta
 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-03 15:56

please post your wpg2 issues in the dedicated wpg2 forum at http://wpg2.ozgreg.com

 
dennys
dennys's picture

Joined: 2003-08-24
Posts: 32
Posted: Sat, 2005-09-03 16:02
valiant wrote:
please post your wpg2 issues in the dedicated wpg2 forum at http://wpg2.ozgreg.com

Thanks, but the author of WPG2 suggests me to post this issue here. I already post it here

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2005-09-03 16:08

same here, it seems as if you did everything correctly.
when you access g2 standalone, not embedded, and save the rewrite rules again such that it creates the .htaccess file in the gallery2 folder too, does it work in g2 standalone?

if not, you have a problem with mod_rewrite on this server.