Google Sitemap - change result url's

mserafim

Joined: 2008-09-14
Posts: 4
Posted: Sat, 2011-01-01 20:21

Hi there.
I have a little question.

The Google Sitemap plugin output URL' are correct but i want to change them

so. the plugin exports URL's like that:

http://www.xxx.com/gallery/v/Flowers/Oape/Oape +Q7/oape_09.jpg.html

how can i made it to export the url without "gallery"

so the result : http://www.xxx.com/v/Flowers/Oape/Oape +Q7/oape_09.jpg.html

???
Thank you

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Sat, 2011-01-01 20:50

Does the second url work of your gallery is not in the root folder?
Perhaps this is what you are after:
FAQ: How can I move my gallery installation from one folder to another?

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
Dayo

Joined: 2005-11-04
Posts: 1642
Posted: Sat, 2011-01-01 20:57

Assuming your g2 is at http://www.xxx.com/gallery, if you want to set it so that people enter http://www.xxx.com to get there, then you need to tell your webserver to do this. There are several ways to do this with the best one of those depending on your situation and settings. The best way is to change your document root on your webserver. This should be possible from your control panel but you can ask your host how to do this if unsure.

After this is done, go to config.php and set $gallery->setConfig('baseUri', 'http://www.xxx.com/');

Note that setting this without changing the doc root or doing rewrites in your htaccess will lead to your urls being incorrect.

Also disable the rewrite module before making these changes and reactivate it after they are done.

***Edit***
Seems like the link Dave provided summarises it nicely

--
dakanji.com