Hello everyone
I'm just testing out permalinks.
For example, I have created a permalink for a regular public album called "Amusement Parks"
Before the permalink was created, the URL was: https://derekjones.net/photos/index.php?/category/105
I created a permalink called amusement-parks
Now the link is: https://derekjones.net/photos/index.php … ent-parks, so the permalink has worked; however, I thought it would just be: https://derekjones.net/photos/amusement-parks, ie the index.php?/category would be "cleaned up".
Is this correct? I can't see anything else to edit in the permalinks section. I'm just looking for a nod from someone to tell me that "yes, it's correct"
Additionally, I've noticed that if you have a smartAlbum, and create a permalink to it, then delete the permalink, the smartAlbum becomes a sub-album of the next album in your list of albums. This doesn't bother me too much, as I can go in manually and put it back in the right place. Is this normal behaviour?
Best wishes to you all and many thanks.
Piwigo URL: https://derekjones.net/photos
Last edited by deljones (2025-07-20 09:56:08)
Offline
Hi,
you can get rid of the php extension and the qeustion mark in the url with settings in your htaccess and within local files editor plugin.
There are some posts about how to do that here in the forum
But there is no way (afaik) to get rid if the "index".
The permalink you defined is only the permalink for the album itself - not for the url part before the album name.
While removing the "php" works without problems, you might run in trouble when removing the "question mark"with some plugins.
Therefore I only removed the the php extension:
1. Local files editor:
$conf['php_extension_in_urls'] = false;
If you want to try to remove the "?":
$conf['question_mark_in_urls'] = false;
2. Htaccess
AcceptPathInfo On
Options -Indexes +MultiViews
<Files "*.php">
MultiviewsMatch Any
</Files>
Depending on your server you might only need:
AcceptPathInfo On
Options -Indexes +MultiViews
Cheers
Ralf
Last edited by Ralf (2025-07-20 11:24:17)
Offline
@ralph. Many thanks for your quick reply. Sounds all a bit complicated. I’m ok editing system files etc, but maybe in this occasion I should leave it alone. I have a good working system. I do t want to break it. Very nice gallery by the way.
Thanks very much
Dj
Offline
If the siite is working fine, there is no need to change a thing :-)
Glad you like my gallery.
Offline