Announcement

#1 2024-04-26 08:29:03

bushi
Member
2024-04-25
9

landing page starts in certain folder

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

 

#2 2024-04-26 12:23:52

erAck
Only trying to help
2015-09-06
2043

Re: landing page starts in certain folder

A .htaccess RewriteRule? Like

Code:

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.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2024-04-26 14:55:17

Katryne
Member
2016-12-03
372

Re: landing page starts in certain folder

In local config, via Local Files Editor, 1st tab :

Code:

$conf['random_index_redirect'] = array('./index.php?/category/1' => '');

replacing 1 by album id.


http://photos.katrynou.fr/ v.14.1.0 https://album.chauvigne.info/ v.13.8.0
Système d'exploitation: Linux - Hébergeur 1&1-Ionos PHP: 8.0.28 - MySQL: 5.7.38
Bibliothèque graphique: External ImageMagick 6.9.10-23

Offline

 

#4 2024-04-26 16:31:44

erAck
Only trying to help
2015-09-06
2043

Re: landing page starts in certain folder

Right, I keep forgetting about that..


Running Piwigo at https://erack.net/gallery/

Offline

 

#5 2024-04-27 20:10:35

bushi
Member
2024-04-25
9

Re: landing page starts in certain folder

Thank, going to try this out.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact