Announcement

#1 2011-08-11 20:52:46

andu211
Member
2011-08-10
2

Link structure / Permalinks

Hi,

Is there a different way of making Piwigo generate link structure than the one I have right now (a plugin, modification, etc.)? For example instead of http://www.freephotogaleries.com/pictur … 53,120,328

Something like picture.php?image=67&category=example  or category/id/picturetitle

Also on my site I have problems with google ads on links similar to above, especially the ones coming from random pictures on homepage.
I am worried that this will also affect the search engine results somehow so this is the main reason of my question.

Thank you for any advice.

Offline

 

#2 2011-08-12 09:04:49

Gotcha
Former Piwigo Team
Pourrières (83) [FR]
2007-03-14
604

Re: Link structure / Permalinks

Hi,

[ Administration >> Plugins >> LocalFiles Editor ] Tab : Local Config

Add and customize :

Code:

// +-----------------------------------------------------------------------+
// |                                 urls                                  |
// +-----------------------------------------------------------------------+

// question_mark_in_urls : the generated urls contain a ? sign. This can be
// changed to false only if the server translates PATH_INFO variable
// (depends on the server AcceptPathInfo directive configuration)
$conf['question_mark_in_urls'] = true;

// php_extension_in_urls : if true, the urls generated for picture and
// category will not contain the .php extension. This will work only if
// .htaccess defines Options +MultiViews parameter or url rewriting rules
// are active.
$conf['php_extension_in_urls'] = true;

// category_url_style : one of 'id' (default) or 'id-name'. 'id-name'
// means that an simplified ascii represntation of the category name will
// appear in the url
$conf['category_url_style'] = 'id';

// picture_url_style : one of 'id' (default), 'id-file' or 'file'. 'id-file'
// or 'file' mean that the file name (without extension will appear in the
// url). Note that one aditionnal sql query will occur if 'file' is choosen.
// Note that you might experience navigation issues if you choose 'file'
// and your file names are not unique
$conf['picture_url_style'] = 'id';

// tag_url_style : one of 'id-tag' (default), 'id' or 'tag'.
// Note that if you choose 'tag' and the url (ascii) representation of your
// tags is not unique, all tags with the same url representation will be shown
$conf['tag_url_style'] = 'id-tag';

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact