Hi,
I'm having a weird photo redirection/SEO issue, I believe, where when I click on a photo, it takes me to another photo (in an entirely different album). I'm not quite sure what's going on here and it doesn't happen on every photo. Here's how my config.inc.php file looks:
<?php
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
?>
relevant part of my apache vhost config:
<Directory /my/site/>
Order allow,deny
Allow from all
Options Indexes FollowSymLinks MultiViews
AcceptPathInfo On
AllowOverride All
Require all granted
</Directory>
example of the issue:
https://gallery.andrewshemo.com/picture … ry/233-raw
takes you here:
https://gallery.andrewshemo.com/picture … categories
Piwigo version: 2.9
PHP version: 7.0
MySQL version: 5.6
Piwigo URL: https://gallery.andrewshemo.com
any help is appreciated!!!
thanks!
Last edited by andrewjs18 (2017-05-13 09:45:02)
Offline
I think I figured out the issue. if 2 photos have the same file name (IMG 0252 as an example), it seems to go to the first photo that was uploaded with that file name...
is this a known bug with piwigo and if so, is there any sort of fix available? the system should probably do a check and rename a photo title if it's going to conflict with an existing photo, I'd think..
Offline
andrewjs18 wrote:
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
I assume
$conf['picture_url_style'] = 'file';
is the culprit. Taken from the relevant section in include/config_default.inc.php:
// Note that you might experience navigation issues if you choose 'file' // and your file names are not unique
Offline
I had the similar problem.
This is one of the threads.
I had to change
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'file';
to
$conf['question_mark_in_urls'] = false;
$conf['php_extension_in_urls'] = false;
$conf['category_url_style'] = 'id-name';
$conf['picture_url_style'] = 'id-file';
Offline