Page 1 of 1

Trailing slash

Posted: Fri Jul 23, 2021 7:01 pm
by dudaz
Hi there,

I'm trying to make / at the end of all URLs. How is shown in this article https://planet-bludit.ch/update-und-mig ... -einer-url

Code: Select all

AddDefaultCharset UTF-8

<ifmodule mod_rewrite.c="">

# Enable rewrite rules
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [R=301,L]

# Deny direct access to .txt files
RewriteRule ^bl-content/(.*)\.txt$ - [R=404,L]

# All URL process by index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) index.php [PT,L]

</ifmodule>

Has anyone else encountered this problem? on the board apache, docker 20.10.7

Re: Trailing slash

Posted: Tue Jul 27, 2021 6:17 pm
by Edi
dudaz wrote: Fri Jul 23, 2021 7:01 pm I'm trying to make / at the end of all URLs. How is shown in this article https://planet-bludit.ch/update-und-mig ... -einer-url
I have no idea why this no longer works. I deleted the entry.