URL seo friendly #566

Closed
opened 2026-10-05 00:04:49 +02:00 by adam · 5 comments
Owner

It is vital important today to have clean URLs for a good regression in search engines:

https://moz.com/blog/15-seo-best-practices-for-structuring-urls
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

It would be great to integrate it in the next version of piwigo

It is vital important today to have clean URLs for a good regression in search engines: https://moz.com/blog/15-seo-best-practices-for-structuring-urls http://httpd.apache.org/docs/2.0/misc/rewriteguide.html It would be great to integrate it in the next version of piwigo <!-- github-sync-id:206210617 -->
adam closed this issue 2026-10-05 00:04:49 +02:00
Author
Owner

See https://github.com/Piwigo/Piwigo/blob/master/include/config_default.inc.php.
To sum it up:

$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'id-file';
$conf['original_url_protection'] = 'images';
$conf['derivative_url_style'] = 2;
See https://github.com/Piwigo/Piwigo/blob/master/include/config_default.inc.php. To sum it up: ``` $conf['category_url_style'] = 'id-name'; $conf['picture_url_style'] = 'id-file'; $conf['original_url_protection'] = 'images'; $conf['derivative_url_style'] = 2; ``` <!-- github-comment-id:279071657 -->
Author
Owner

Well.. I have freshly migrated my files from gallery (menalto) and I must say that Piwigo URL construction is more then awkward... (and I would like to use less friendly word). I don't know if it's because of use of PATH_INFO or there are some other reasons, but still - URL in piwigo is ugly. Why?

  • no human readable hierarchy of albums in url (you can see them in gallery breadcrumbs but, URL is always pointing to one, top category)
  • you will always have "index/category", "index" or "picture" in front of URL
  • and finally, when linking to a picture - it's name is before category

So instead of heaving nice, clean URL like this:
http://piwigo.org/anniversary/10years_of_piwigo/team_photo.jpeg
We have at best (if you enable proper "clean" config)
http://piwigo.org/picture/2828-team_photo/category/9292-10years_of_piwigo

Well.. I have freshly migrated my files from gallery (menalto) and I must say that Piwigo URL construction is more then awkward... (and I would like to use less friendly word). I don't know if it's because of use of PATH_INFO or there are some other reasons, but still - URL in piwigo is ugly. Why? - no human readable hierarchy of albums in url (you can see them in gallery breadcrumbs but, URL is always pointing to one, top category) - you will always have "index/category", "index" or "picture" in front of URL - and finally, when linking to a picture - it's name is before category So instead of heaving nice, clean URL like this: **`http://piwigo.org/anniversary/10years_of_piwigo/team_photo.jpeg`** We have at best (if you enable proper "clean" config) **`http://piwigo.org/picture/2828-team_photo/category/9292-10years_of_piwigo`** <!-- github-comment-id:280741472 -->
Author
Owner

Indeed a work on the rewriting of url is fundamental today to have a good SEO on the search engines and the structure of the urls hurts the eyes.

Indeed a work on the rewriting of url is fundamental today to have a good SEO on the search engines and the structure of the urls hurts the eyes. <!-- github-comment-id:280756390 -->
Author
Owner

Structure url should be : domainename.com/album/picturename.jpg

Structure url should be : domainename.com/album/picturename.jpg <!-- github-comment-id:280756575 -->
Author
Owner

I remember a good theme in the forum gallery3 about SEO http://galleryproject.org/node/110874 Maybe someone can repeat for Piwigo

I remember a good theme in the forum gallery3 about SEO http://galleryproject.org/node/110874 Maybe someone can repeat for Piwigo <!-- github-comment-id:280757742 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#566