Hi, how might I set things up so people coming to the page start in a certain folder? I have dynamic one setup that I kind want to be where folks first land when hitting my url.
When I try to through tool, sync site manager I gen an error
Directory does not exist [./DivingStream/]
maybe not possible with smart albums?
Last edited by bushi (2024-04-26 09:20:22)
Offline
A .htaccess RewriteRule? Like
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteRule ^$ https://example.com/index/category/Yours [R=302,L]
i.e. if URI has no query string (e.g. is not https://examle.com/?act=logout) then rewrite empty path to an album category.
Use temp 302 instead of permanent 301 to be able to have target changes respected by browsers.
Note that index/category here implies that .php extension and ? parameter question mark are disabled in Piwigo, else use index.php?/category or whatever suits.
Offline
In local config, via Local Files Editor, 1st tab :
$conf['random_index_redirect'] = array('./index.php?/category/1' => '');
replacing 1 by album id.
Offline
Right, I keep forgetting about that..
Offline
Thank, going to try this out.
Offline