Piwigo.org

You are not logged in. (Register / Login)

Announcement

#1 2017-03-09 02:40:43

zomborama
Member
Registered: 2017-03-09
Posts: 2

How do I change the root url of the Home icon and Gallery Name?

Hi everyone,

I just installed Piwigo 2.8.6 and all is good but my Home icon link and my Gallery Name urls at the top left both point to the root as "/piwigo/" as in "http://www.mywebsite.com/piwigo/"

I changed the .htaccess rewrite rules to allow Piwigo to run as "http://www.mybsite.com/index.php" and that works fine but the Home icon and the "My Photo Gallery" urls both point to:

"http://www.mywebsite.com/piwigo/"

Is there any way I can change this to just point to "http://www.mywebsite.com"?

I looked and saw a variable in the following:

/piwigo/themes/bootstrap_darkroom/themeconf.inc.php

$home_link_content = '<a href="' . $u_home . '" title="' . $home_link_orig->nodeValue . '"><i class="fa fa-home" aria-hidden="true"></i></a >';

but I don't know where to change $u_home

Any help would be appreciated as I couldn't find it in the MySQL DB.

Many Thanks,
Z

Offline

 

#2 2017-03-09 05:22:19

zomborama
Member
Registered: 2017-03-09
Posts: 2

Re: How do I change the root url of the Home icon and Gallery Name?

I solved my own problem. I found in this post below that the "gallery_url" slug applies to the Home icon as well as the Gallery Name.

http://piwigo.org/forum/viewtopic.php?id=23475

I added the line below into my local conf file and now the Home icon & Gallery Name both point to http:/www.mysite.com/ and not http://www.mysite.com/piwigo/

$conf['gallery_url'] = '/';

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2017 · Contact