Hey Sonja,
so i tried your solution, but same problem here…
I tested it on the staging server: staging.my-personalshopper.de and as you can see, the same problem occurs…
Here you have my htaccess:
# Kirby .htaccess
# rewrite rules
<IfModule mod_rewrite.c>
# enable awesome urls. i.e.:
# http://yourdomain.com/about-us/team
RewriteEngine on
# make sure to set the RewriteBase correctly
# if you are running the site in a subfolder.
# Otherwise links or the entire site will break.
#
# If your homepage is http://yourdomain.com/mysite
# Set the RewriteBase to:
#
RewriteBase /
# In some enviroments it's necessary to
# set the RewriteBase to:
#
RewriteBase /
# block text files in the content folder from being accessed directly
RewriteRule ^content/(.*)\.(txt|md|mdown)$ index.php [L]
# block all files in the site folder from being accessed directly
# except for requests to plugin assets files
#RewriteRule ^assets/plugins/([a-zA-Z0-9\.\-_%=]+)/(.*)$ site/plugins/$1/assets/$2 [L,N]
#RewriteCond $1 !^plugins/[a-zA-Z0-9\.\-_%=]+/assets/.*
RewriteRule ^site/(.*) index.php [L]
# block direct access to kirby and the panel sources
RewriteRule ^(kirby|panel\/app|panel\/tests)/(.*) index.php [L]
# make panel links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^panel/(.*) panel/index.php [L]
# make site links work
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php [L]
</IfModule>
# Additional recommended values
# Remove comments for those you want to use.
#
# AddDefaultCharset UTF-8
#
# php_flag short_open_tag on
Redirect 301 "/profil.html" "/de/meine-philosophie/ueber-mich"
Redirect 301 "/serviceleistungen.html" "/de/leistungen"
Redirect 301 "/personalshopping.html" "/de/leistungen/personal-shopping"
Redirect 301 "/imageberatung.html" "/de/leistungen/typberatung"
Redirect 301 "/specials.html" "/de/leistungen/kleidung-als-business-faktor"
Redirect 301 "/workshops.html" "/de/leistungen/workshops"
Redirect 301 "/trends.html" "/de/trends"
Redirect 301 "/reise.html" "/de/leistungen/shopping-wochenende-in-paris"
Redirect 301 "/jubilaeum.html" "/de/leistungen"
Redirect 301 "/presse-medien.html" "/de/meine-philosophie/presse"
Redirect 301 "/pressemitteilung.html" "/de/meine-philosophie/presse"
Redirect 301 "/partner.html" "/de/meine-philosophie/partner"
Redirect 301 "/gutschein.html" "/de/leistungen/geschenk-gutschein"
Redirect 301 "/kontakt.html" "/de/kontakt"
Redirect 301 "/impressum.html" "/de/impressum"
Redirect 301 "/ufilm3/ufilm.html" "/de/meine-philosophie/presse"
Redirect 301 "/pdf/interview-silke-gerloff.pdf" "/de/meine-philosophie/interviews"
Redirect 301 "/index-en.html" "/en"
Redirect 301 "/profil-en.html" "/en/my-philosophy/about-me"
Redirect 301 "/serviceleistungen-en.html" "/en/services"
Redirect 301 "/personalshopping-en.html" "/en/services/personalshopping"
Redirect 301 "/reise-en.html" "/en/services/shopping-in-paris"
Redirect 301 "/gutschein-en.html" "/en/services/gift-voucher"
Redirect 301 "/kontakt-en.html" "/en/contact"
#RedirectMatch 301 "/(.+)\.html$" "/"
Isn’t there an appropriate solution for this? I can’t imagine that this wasn’t a case so far since multilanguage sites with old URLs are being built all the time, am i right?
Would it be possible to achieve this via routes?
Greets Tobi
Maybe he has a solution…
But with knowing this, i am going to start all over from here…
There’s always a certain risk with using plugins that try to change the way Kirby works too much. Maybe now you can go back to using .htaccess for your redirects, it is actually preferable to using routes because it kicks in before PHP is called.