Announcement

#1 2015-07-12 02:48:00

neek
Member
2015-06-14
15

Swapping picture and category in a URL

Greetings,

I *love* the functionality in piwigo. Thanks to the team who created it!

I do have one question, though: I'm trying to rearrange the items in an SEO-friendly URL for piwigo. In US English, at least, it'd be more natural to have a URL such as:

Code:

http://example.com/category/cat-name/picture/some-pic-id

where cat-name is the name/id of an album, depending upon the setting of 'category_url_style', and some-pic-id is a picture's id or name, depending upon the setting of 'picture_url_style'. In other words, picture and category ought to be swapped.

Ideally, piwigo's URL format would look something like:

http://example.com/some-cat-name for a full album, or
http://example.com/some-cat-name/some-pic-id for a specific picture

Is this easy-ish without hacking a bunch of places throughout the source? I happen to be running it on nginx.

thanks!

Piwigo version: 2.7.4
Piwigo URL: http://photos.triantos.com

Last edited by neek (2015-07-12 02:48:31)

Offline

 

#2 2018-08-28 03:52:25

neek
Member
2015-06-14
15

Re: Swapping picture and category in a URL

Bumping this after 3 years of inactivity. Any guidance about clean URLs and rewriting them (with Piwigo 2.9.4 and nginx) would be greatly appreciated!

Offline

 

#3 2018-08-28 04:22:47

executive
Member
2017-08-16
480

Re: Swapping picture and category in a URL

Offline

 

#4 2018-08-28 05:41:19

neek
Member
2015-06-14
15

Re: Swapping picture and category in a URL

Thank you, I saw that but was hoping more progress was made in the past 2 years. Has anyone gotten this working with nginx as the web server? My server died a few months ago and corrupted my backups and I lost my config. thanks!

Offline

 

Board footer

Powered by FluxBB

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