butlak
January 30, 2021, 9:18pm
1
hi. i was just wondering, why the
https://www.edition-herre.de/index.php
is not found (404), while the url https://www.edition-herre.de/
links to the homepage.
what do I have to do to link https://www.edition-herre.de/index.php
to the homepage too.
kind regard. christian
texnixe
January 30, 2021, 10:28pm
2
It doesn’t really make sense to have the same content available under different URLs.
Why do you want to achieve this?
The reason why this happens is because every link to index.php
goes to Kirby’s router and links to scripts are no available.
butlak
January 30, 2021, 11:12pm
3
I relaunched the site and https://www.edition-herre.de/index.php was the former
starting page. some users bookmarked the URL and get now after relaunch a 404.
Cris
January 31, 2021, 7:18am
4
Hi,
You could solve it with a route .
'routes' => [
[
'pattern' => 'index.php',
'action' => function () {
go('/');
}
]
]
butlak
January 31, 2021, 9:27am
5
thank you. this works fine.