How to change the URL to WPG2 Output

bsdlover

Joined: 2007-10-02
Posts: 4
Posted: Tue, 2007-10-02 10:59

Hello, can I change the URL to WPG2 Output from default wpg2?!

And.. can I send the "request" for the old wp-gallery2.php to the new wpg2 output url?!

Thank you very much and sorry for my bad english.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-10-02 11:18

You can change the URL by changing the "Page Slug" under Manage -> Pages -> Edit for the embedded page. You can also change the "Page Title" while you're there, if you like.

You could use mod_rewrite (in .htaccess) to redirect wordpress/wp-gallery2.php to wordpress/wpg2. I always have to relearn mod_rewrite rules, because I don't use them very often. I'll take a look and post the solution here later today.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
bsdlover

Joined: 2007-10-02
Posts: 4
Posted: Tue, 2007-10-02 11:35

Thank you very much! I have changed the name and the link of the gallery. Now I need the "rules" for .htaccess to redirect the traffic from /wp-gallery2.php to /foto .

Another one question: in dhtml tree menu, I have links like this ( http://www.paologatti.it/foto/ ):

http://www.paologatti.it/wp-gallery2.php?g2_itemId=186

and not:

http://www.paologatti.it/foto?g2_itemId=186

and it cause a 404 error. How to resolve this problem?!

Thank you, Paolo.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-10-02 12:10

If you have Gallery2 Template Caching turned on you will need to flush your Gallery2 Template Cache to force the G2 DHTML Tree to regenerate its links, you can do this via the Gallery2 Site Admin, Maintenance Menu, Delete Template Cache.

Add the following to your Wordpress generated .htaccess file
Redirect 301 /wp-gallery2.php http://www.yourdomain.com/wpg2

____________________________________
Wordpress / Gallery2 (WPG2) Author

 
bsdlover

Joined: 2007-10-02
Posts: 4
Posted: Tue, 2007-10-02 12:20

Now all work fine. Thank you very very much ;-)

Bye, Paolo.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Tue, 2007-10-02 12:53

I've added all of this info to the WPG2 FAQ.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
bsdlover

Joined: 2007-10-02
Posts: 4
Posted: Tue, 2007-10-02 21:00

Good work :-)

Bye, Paolo.